1. 10 Apr, 2013 1 commit
    • Ying Wang's avatar
      Add liblog · 1d181624
      Ying Wang authored
      Bug: 8580410
      Change-Id: Icc2632b33153b01c0d9a15245b3f7e8c89b816ec
      1d181624
  2. 28 Mar, 2013 1 commit
  3. 21 Mar, 2013 1 commit
  4. 18 Mar, 2013 1 commit
  5. 16 Mar, 2013 1 commit
  6. 15 Mar, 2013 2 commits
    • JP Abgrall's avatar
      NAT: Disable FORWARD by default and set postroute before FORWARD. · 659692a5
      JP Abgrall authored
      [Adaptation from https://android-review.googlesource.com/#/c/50223 ]
      
      For NAT table, only the first packet of data flow
      hits the rules in this table. If forward is
      enabled before postrouting in NAT, packet may be
      forwarded without hit rules in NAT table. Phone
      will not get responses for such packets because
      source IP address is not translated.
      How to reproduce:
      1) Enable usb tethering;
      2) Start ping test on PC;
      3) Disable data on Phone;
      4) NAT is disabled since data service is lost;
      5) Enable data on Phone;
      6) Ping can not recover on PC;
      7) Capture tcpdump data on phone, source IP
         Address is not translated for ICMP packets.
      Test result:
      Run steps 1-5 in "How to reproduce", Ping session
      on PC can be recovered after data is enabled.
      CQ00027191
      
      Change-Id: I1c3bcbb3d69eb7e2f61d720fa17086ee0da22fa0
      659692a5
    • JP Abgrall's avatar
      NatController: refactor some code wrt sequences of commands · 4ae80dea
      JP Abgrall authored
      This will help when adding/removing commands.
      
      Change-Id: I154fb3d7064acddc3e067d60f225ecab6ea57ddb
      4ae80dea
  7. 11 Mar, 2013 5 commits
  8. 05 Mar, 2013 2 commits
    • Lorenzo Colitti's avatar
      Set accept_ra to 2 when enabling IPv6. · cfd1a582
      Lorenzo Colitti authored
      The default value of accept_ra causes the kernel to accept
      Router Advertisements only if forwarding is off. This causes
      problems with clatd, which uses IPv6 forwarding on a tun
      interface, and it may cause problems with IPv6 tethering when
      we implement it.
      
      Fix this by setting accept_ra to 2, which accepts RAs regardless
      of whether forwarding is on.
      
      Bug: 8276725
      Change-Id: Ifee0ceaa68ce438a845fa2d7f3b76c60857114a0
      cfd1a582
    • Lorenzo Colitti's avatar
      Move IPv6 code to InterfaceController. · 70afde6a
      Lorenzo Colitti authored
      Bug: 8276725
      Change-Id: Ia04fb64d3660eb08d8b32209bf689c5c5e6dd9ac
      70afde6a
  9. 23 Feb, 2013 1 commit
  10. 22 Feb, 2013 1 commit
    • Nick Kralevich's avatar
      Don't use client passed PID · 52b17bcf
      Nick Kralevich authored
      Don't assume the client is telling the truth about their PID.
      Always take their PID directly from the socket, which is
      guaranteed by the kernel to be accurate.
      
      Change-Id: Id3374306fd7043da22065921bd49aced60df32f5
      52b17bcf
  11. 14 Feb, 2013 2 commits
    • JP Abgrall's avatar
      BandwidthController: fixup insertion pos in costly chain handling · 109899bc
      JP Abgrall authored
      * Long time ago, setting an alert in a costly_<iface> chain required adding
      it just before the ACCEPT rule that was at the end.
      But since then the ACCEPT rule has been removed.
      This would cause the insert to pick the last position no matter what.
      Now we just append.
      
      * A naughty app in the penalty box could waste up quota on packets that would
      get dropped in the later penalty_box rule.
      Now we check the penalty_box before feeding it to the quota.
      
      Change-Id: Id4b6a7c020583f1cccc7dccde34c4b85d0fd9642
      109899bc
    • JP Abgrall's avatar
      BandwidthController: correctly handle the iptables command exit code · c8dc63b1
      JP Abgrall authored
      The return code from android_fork_execvp() needed to be massaged because
      a status ptr was passed in.
      
      Bug: 8185095
      Change-Id: I205884f09b563dd729423a74f22fd5b8c2d59c64
      c8dc63b1
  12. 08 Feb, 2013 1 commit
  13. 07 Feb, 2013 5 commits
  14. 31 Jan, 2013 2 commits
  15. 19 Jan, 2013 2 commits
  16. 17 Jan, 2013 1 commit
  17. 15 Jan, 2013 1 commit
  18. 14 Jan, 2013 5 commits
  19. 11 Jan, 2013 2 commits
    • Mattias Falk's avatar
      dns cache per interface iteration 2 · 1c0a243b
      Mattias Falk authored
      support for attach/detach a process (pid) to a
      dns cache.
      lookup associated dns cache based on the pid
      handle pid and interface argument for getaddrinfo
      and gethostbyaddress
      
      Change-Id: I325788973ad76beb1ada8f5fa6f52f9a94c08dd1
      bug:5465296
      1c0a243b
    • Sasha Levitskiy's avatar
      A rough cleanup of netd/softap · 25753d50
      Sasha Levitskiy authored
      
      - Added error code propagation
      - Added more elaborate error messages
      - Added stricter parameter checking in softap fwreload
      - Cleaned up class signatures
      - Removed a non-working default AP in setSoftap
      - Removed obsolete functions:
        - int addParam(int pos, const char *cmd, const char *arg);
        - int setCommand(char *iface, const char *fname, unsigned buflen=0);
      - Removed unused "softap clients" functionality
      - Removed unused hostapd communication socket
      
      Change-Id: Iad05069f6547f4b17481991018707d5f9db2500a
      Signed-off-by: default avatarAlexander Levitskiy <sanek@google.com>
      25753d50
  20. 15 Dec, 2012 1 commit
  21. 30 Nov, 2012 1 commit
  22. 29 Nov, 2012 1 commit