• JP Abgrall's avatar
    netd: Idletimer vs Nat vs Bandwidth controllers · 0031cead
    JP Abgrall authored
    * modified iptables users to work in controller specific custom chains.
     - each controller only works withing his own custom chains and not the
      top level ones (INPUT, OUTPUT, FORWARD, POSTROUTING,...)
     - CommandListener now invokes setupIptablesHooks() for each controller
       once. That is the only time they are allowed to access the top-level
       chains.
    
    * Added idletimer controller.
      From https://android-git.corp.google.com/g/#/c/180769/2
    
    
     - supported commands
       . ndc idletimer enable
       . ndc idletimer add <iface> <timeout>
       . ndc idletimer remove <iface> <timeout_used_during_add>
     There is a framework change elsewhere that receives netlink messages.
    Signed-off-by: default avatarAshish Sharma <ashishsharma@google.com>
    Signed-off-by: default avatarJP Abgrall <jpa@google.com>
    Change-Id: Ia57450c09166ce20f21d1e3b49047ef1e98f2a3d
    0031cead
NatController.cpp 8.71 KB