OSDN Git Service

Do not wipe all netd iptables rules in test mode
authorJohn Michelau <john.michelau@motorola.com>
Sat, 28 May 2011 03:07:20 +0000 (22:07 -0500)
committerWink Saville <wink@google.com>
Sat, 28 May 2011 03:41:55 +0000 (20:41 -0700)
commitac208608c9e10ef199fdd11c38a31675ee9290c0
treef19ee5e5a7534da369ebbe75c77583cfe2f3def1
parente019b65925217bcc3ad9b662aa3125f0593057af
Do not wipe all netd iptables rules in test mode

The NatController fail-safe which flushes the iptables when the ref
count reaches zero unintentionally wipes out all static rules setup
by init in bp-tools test mode.  Doing this flush is not necessary.

Change-Id: I37890e79cd701aa2e970958a246dfe7514a65c47
NatController.cpp