1. 27 Apr, 2012 2 commits
    • JP Abgrall's avatar
      BandwidthController: hookup qtaguid for tracking closest to devices. · f66d6e9d
      JP Abgrall authored
      Before, qtaguid would rely on netdev (up/down) callbacks to read out the
      dev rx/tx stats.
      Now it uses (raw) PREROUTING and (mangle) POSTROUTING iptable hooks.
      We use mangle on the out path because nat is not available in ipv6.
      The NatController only masquerades in nat POSTROUTING so we don't count
      traffic that might get dropped.
      
      
      Bug: 5444089
      Change-Id: I997b8b3c81264a545f1f575baaf0445c0afc8f72
      f66d6e9d
    • JP Abgrall's avatar
      netd: Netlink: Use KOBJECT_UEVENT instead of IDLETIMER · e07effe6
      JP Abgrall authored
      The initial idletimer support required using NETLINK_IDLETIMER
      netlink socket type.
      Instead we now just re-use the existing KOBJECT_UEVENT socket.
      
      Change-Id: I951f2f29182c7cf7f29a054a0eabc88dc25f6d1f
      e07effe6
  2. 26 Apr, 2012 2 commits
    • JP Abgrall's avatar
      bandwidthcontroller: hide iptables errors when they don't matter · ad729ac1
      JP Abgrall authored
      Some commands are run to be able to recover after failures.
      Those cleanup commands are generally allowed to fail.
      But the lower level system commands would log an error.
      Now that error is hidden if nobody will care about the result.
      A "#define LOG_NDEBUG 0" will show those failing commands.
      
      Removed leftover LOG_NDEBUG in CommandListener.
      
      Bug: 6377175
      Change-Id: I1205fb077f7d0496969bd2a0b5da42025bc5a8dc
      ad729ac1
    • JP Abgrall's avatar
      netd: NatController: don't setup iptables hooks in constructor. · e4c501c3
      JP Abgrall authored
      iptables top-level chain updates should happen within CommandListener()
      when it invokes the various modules' setupIptablesHooks().
      And remove the extra DROP rule.
      
      Change-Id: I33d2cfbd5444516f855ff85152c472352944cc77
      e4c501c3
  3. 24 Apr, 2012 1 commit
  4. 20 Apr, 2012 2 commits
    • Robert Greenwalt's avatar
      Store certain MDNS fields as quoted strings · 4833e47b
      Robert Greenwalt authored
      They sometimes contain spaces so a space-delimited response requires more care.
      
      bug: 6353048
      Change-Id: I84d5cc156bf4d9f1419b7202e9aa00ddb7209b2f
      4833e47b
    • 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
  5. 19 Apr, 2012 1 commit
  6. 12 Apr, 2012 2 commits
  7. 03 Apr, 2012 1 commit
  8. 21 Mar, 2012 6 commits
  9. 16 Mar, 2012 1 commit
  10. 10 Mar, 2012 2 commits
  11. 09 Mar, 2012 8 commits
  12. 08 Mar, 2012 3 commits
  13. 07 Mar, 2012 8 commits
  14. 06 Mar, 2012 1 commit