diff options
author | Maciej Żenczykowski <maze@google.com> | 2021-03-23 15:50:32 -0700 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2021-04-02 14:48:42 +0000 |
commit | 09d646081836f7008732eba129dd9c3b6a39658c (patch) | |
tree | 4aa271a7a224b4d6f3995fef24711ce60f90dc73 /server/IdletimerController.cpp | |
parent | 66e860ffb217954ff27b6588ed479d88928153b1 (diff) | |
download | netd-09d646081836f7008732eba129dd9c3b6a39658c.tar.gz |
remove int arg from send_nl_mgs bool to match new iptables binary
Test: atest, TreeHuger
Bug: 183485987
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Id46ed319e919aa304bcaa3de3054ce1d427369cd
Diffstat (limited to 'server/IdletimerController.cpp')
-rw-r--r-- | server/IdletimerController.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/IdletimerController.cpp b/server/IdletimerController.cpp index 103e7cd6..cc86d1bd 100644 --- a/server/IdletimerController.cpp +++ b/server/IdletimerController.cpp @@ -39,8 +39,8 @@ * # For notifications to work the lable name must match the name of a valid interface. * # If the label name does match an interface, the rules will be a no-op. * - * iptables -t raw -A idletimer_PREROUTING -i rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1 - * iptables -t mangle -A idletimer_POSTROUTING -o rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1 + * iptables -t raw -A idletimer_PREROUTING -i rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg + * iptables -t mangle -A idletimer_POSTROUTING -o rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg * * iptables -nxvL -t raw * iptables -nxvL -t mangle @@ -147,14 +147,14 @@ int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, const char *addRemove = (op == IptOpAdd) ? "-A" : "-D"; std::vector<std::string> cmds = { - "*raw", - StringPrintf("%s %s -i %s -j IDLETIMER --timeout %u --label %s --send_nl_msg 1", - addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), - "COMMIT", - "*mangle", - StringPrintf("%s %s -o %s -j IDLETIMER --timeout %u --label %s --send_nl_msg 1", - addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabel), - "COMMIT\n", + "*raw", + StringPrintf("%s %s -i %s -j IDLETIMER --timeout %u --label %s --send_nl_msg", + addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), + "COMMIT", + "*mangle", + StringPrintf("%s %s -o %s -j IDLETIMER --timeout %u --label %s --send_nl_msg", + addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabel), + "COMMIT\n", }; return (execIptablesRestore(V4V6, Join(cmds, '\n')) == 0) ? 0 : -EREMOTEIO; |