1. 14 Jul, 2012 1 commit
    • Jeff Sharkey's avatar
      Consolidate iptables chain management. · 8e188ed5
      Jeff Sharkey authored
      Move creation and management of module iptables chains up into
      CommandListener, which gives better visibility into ordering.
      
      Change-Id: If0c94187c6e59a20840b035d7241057f45a0f74b
      8e188ed5
  2. 26 Apr, 2012 1 commit
  3. 25 Apr, 2012 1 commit
  4. 20 Apr, 2012 1 commit
    • 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. 29 Feb, 2012 1 commit
  6. 01 Feb, 2012 1 commit
  7. 31 Jan, 2012 1 commit
    • Robert Greenwalt's avatar
      Keep better tabs on secondary tables. · c462177b
      Robert Greenwalt authored
      We had some places (NatController) where routes were being set
      but not accounted for in the number-of-routes talley so we
      could end up thinking the table was empty and not clean up
      after ourselves properly.
      
      Also consolidated constants.
      
      bug:5917475
      Change-Id: I98a41d433e1d4b4ca6692fb2328e2c9afc828145
      c462177b
  8. 18 Jan, 2012 1 commit
  9. 06 Jan, 2012 1 commit
  10. 14 Dec, 2011 2 commits
    • JP Abgrall's avatar
      netd: fix argument interpretation bug · 8a12dd08
      JP Abgrall authored
      While working around the logwrap() issue, it was replaced with system()
      which could lead to various commands getting misinterpreted.
      
      We now use a system() equivalent that doesn't use "sh -c".
      
      Bug:5758556
      Change-Id: I2599b526ac34bcfca18d05261286d902d547efda
      8a12dd08
    • JP Abgrall's avatar
      netd: fix argument interpretation bug · 9e5e0ce6
      JP Abgrall authored
      While working around the logwrap() issue, it was replaced with system()
      which could lead to various commands getting misinterpreted.
      
      We now use a system() equivalent that doesn't use "sh -c".
      
      Bug:5758556
      Change-Id: I2599b526ac34bcfca18d05261286d902d547efda
      9e5e0ce6
  11. 22 Nov, 2011 1 commit
  12. 04 Nov, 2011 1 commit
  13. 02 Nov, 2011 1 commit
    • Robert Greenwalt's avatar
      When un-natting try to do all we can · f7bf29c8
      Robert Greenwalt authored
      Regardless of errors we should try to do as much as possible.  Sometimes
      some steps may fail if interfaces are taken down before we can un-nat them.
      
      bug:5536516
      Change-Id: I9c9b0123198dba890565e0a6e4e15add16b369c2
      f7bf29c8
  14. 12 Aug, 2011 1 commit
    • JP Abgrall's avatar
      netd: all: use system() instead of logwrap() for now. · 11b4e9b2
      JP Abgrall authored
      The logwrapper uses a blocking read() which does not always
      correctly detect when the child process at the other end is gone.
      This is a quick workaround for http://b/5144246
      
      
      A cleaner logwrapper parent() will follow.
      
      Add support for BandwidthController() to use either system() or
      logwrap(). It looks at "persist.bandwidth.uselogwrap" to be 0 or 1.
      
      Change-Id: I2d17732214f1a7fef6838eee05d827695b707ab0
      Signed-off-by: default avatarJP Abgrall <jpa@google.com>
      11b4e9b2
  15. 03 Aug, 2011 1 commit
  16. 02 Aug, 2011 1 commit
  17. 29 Jul, 2011 1 commit
    • Wink Saville's avatar
      DO NOT MERGE: Update OEM iptable hooks and ip fwd · 4309f87d
      Wink Saville authored
      This is a squash of two changes from partner repo:
      
          Clean up OEM iptables hooks
      
          Id: Ife7a1c08ca88beba2dede776d2e4dd6097dad05a
      
      And
      
          Add hooks for OEM iptables rules and IP fwd
      
          - Useful for integrating peripherals that use IP for control and
          diagnostics.
          - Add hooks for specifying static iptables rules at startup.
          - Add system prop to keep IP forwarding enabled all the time.
          - Remove the ro.bootmode=bp-tools hacks.
      
          Id: Ic70d4c88179c530414505976193bf616037500a6
      
      Bug: 5045218
      Change-Id: I4229d3576426880b68ac448f9fbb67f2f8f304a0
      4309f87d
  18. 26 Jul, 2011 1 commit
  19. 24 Jun, 2011 1 commit
  20. 28 May, 2011 1 commit
    • John Michelau's avatar
      Do not wipe all netd iptables rules in test mode · ac208608
      John Michelau authored
      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
      ac208608
  21. 17 Nov, 2010 1 commit
  22. 13 Oct, 2010 1 commit
  23. 25 Mar, 2010 1 commit
  24. 24 Mar, 2010 1 commit
  25. 20 Jan, 2010 1 commit