1. 13 Jan, 2012 1 commit
    • David 'Digit' Turner's avatar
      Use <resolv_iface.h> instead of <resolv.h> · 4da10dd0
      David 'Digit' Turner authored
      The declarations for _resolv_set_default_iface() and others were
      initially added to a public C library header (<resolv.h>). This was a
      mistake and they have been moved to a private header
      (bionic/libc/private/resolv_iface.h)
      
      This patch updates netd to use the correct private header.
      
      Change-Id: I186390ea3675685b4e0dd5b8a099bd21911f059e
      4da10dd0
  2. 04 Nov, 2011 1 commit
  3. 25 Jul, 2011 1 commit
  4. 21 Jul, 2011 1 commit
  5. 19 Jul, 2011 1 commit
  6. 12 Jul, 2011 1 commit
  7. 18 Jun, 2011 1 commit
  8. 16 Jun, 2011 1 commit
    • JP Abgrall's avatar
      system/netd: bandwidth management initial support (uid+tag stats) · 4a5f5ca3
      JP Abgrall authored
      This is a minimalistic version to get accounting of data going
      through tagged socket per uid.
      
      When netd starts up the BandwidthController, it will look at the
      properties for
         persist.bandwidth.enable=1
      and enabled it.
      
      It needs the kernel with the xt_qtaguid + iptables/netfilter goodness.
      stlport is ok to use.
      
      The "owner" netfilter module used is actually our xt_qtaguid that acts as it
      (just until we get around to talking directly the to kernel).
      
      Once
        "ndc bandwidth enable"
      is invoked all traffic is counted against the UIDs receiving/sending it.
      This allows BlockGuard.java to "tag" sockets and see stats for the tags.
      
      Data shows up in
        /proc/net/xt_qtaguid/stats
      
        /proc/net/xt_qtaguid/iface_stat/<iface>/
           rx_packets_tcp
           rx_bytes_tcp
           ...
      There is no <uid>/...
      
      Supported commands:
       - "ndc bandwidth enable"
         will setup the needed iptable entries to track tag/uid.
       - "ndc bandwidth disable"
         will remove the iptable entries.
       - "ndc bandwidth setquota <iface> <value>"
         will set a quota on the iface.
         Once quota is reached, packets are rejected.
         With the correct kernel, rejects are turned in socket errors.
      
      TODO
      ----
       * make bandwidth controller cooperate with tethering.
         - they both manipulate the iptables.
      
      Change-Id: Ieb9e7c60ef8c974e99828f7833065d59b2922bf3
      4a5f5ca3
  9. 29 Apr, 2011 1 commit
    • Mattias Falk's avatar
      Add ResolverController class · 89c1e975
      Mattias Falk authored
      Added a ResolverController class that handles
      the communication with the dns resolver in
      netd.
      
      Change-Id: I0f71bd516109fd942e68b3400666c7a859228372
      89c1e975
  10. 06 Jan, 2011 1 commit
    • Brad Fitzpatrick's avatar
      DNS proxy thread in netd. · 4e248e5a
      Brad Fitzpatrick authored
      New thread in the netd process which listens on the
      /dev/socket/dnsproxyd socket (group owned by 'inet', so only useable
      by apps with the INTERNET permission), and does getaddrinfo requests
      for other processes, caching in one place, rather than per-app.
      
      Still remaining: proper caching based on DNS-requested lengths, upping
      the cache size, getnameinfo, stats, flush, etc, etc.
      
      Change-Id: I1d65af7d87876e508c718656bd81217cd961e20a
      4e248e5a
  11. 01 Nov, 2010 1 commit
    • Brad Fitzpatrick's avatar
      DNS proxy thread in netd. · 007e987f
      Brad Fitzpatrick authored
      New thread in the netd process which listens on the
      /dev/socket/dnsproxyd socket (group owned by 'inet', so only useable
      by apps with the INTERNET permission), and does getaddrinfo requests
      for other processes, caching in one place, rather than per-app.
      
      Still remaining: proper caching based on DNS-requested lengths, upping
      the cache size, getnameinfo, stats, flush, etc, etc.
      
      Change-Id: I1d65af7d87876e508c718656bd81217cd961e20a
      007e987f
  12. 07 Apr, 2010 1 commit
  13. 15 Mar, 2010 1 commit
  14. 12 Mar, 2010 1 commit
  15. 09 Mar, 2010 1 commit
  16. 18 Feb, 2010 1 commit
  17. 10 Feb, 2010 1 commit
  18. 28 Jan, 2010 1 commit
  19. 22 Jan, 2010 1 commit
  20. 21 Jan, 2010 2 commits
  21. 20 Jan, 2010 2 commits
  22. 19 Jan, 2010 1 commit
  23. 15 Jan, 2010 1 commit