OSDN Git Service
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Brad Fitzpatrick [Wed, 27 Oct 2010 18:39:52 +0000 (11:39 -0700)]
DNS proxy thread in netd.
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
Paul Eastham [Wed, 13 Oct 2010 16:42:51 +0000 (09:42 -0700)]
Remove STOPSHIP comment
Change-Id: I2d42d6ddb16f88929b5edeeeb653feca8348e804
jmzhu [Mon, 11 Oct 2010 23:47:05 +0000 (16:47 -0700)]
netd: softap: Add sub-ioctl command support
Change-Id: Ieb344fbb8853019e92a7385f7a190aa7451102dc
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Dmitry Shmidt [Thu, 23 Sep 2010 20:47:20 +0000 (13:47 -0700)]
Merge "softap: Incapsulate command call"
Dmitry Shmidt [Thu, 23 Sep 2010 00:31:07 +0000 (17:31 -0700)]
softap: Incapsulate command call
Change-Id: I9c123252b3b5fa8649876e7e9138927d25dd1812
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Brad Fitzpatrick [Mon, 20 Sep 2010 18:29:47 +0000 (11:29 -0700)]
Use ptsname_r instead of ptsname in logwrapper.
Also other misc suggestions and fixes from Markus' review.
Bug:
3017876
Change-Id: I503f0340c2d75afb6850e36c1586f7f495638036
Brad Fitzpatrick [Mon, 20 Sep 2010 18:13:07 +0000 (11:13 -0700)]
Re-sync netd and vold's logwrapper.c forks.
Change-Id: Ie7ad47f0e9bfb862b92cd34070b79b6003549a16
Nick Kralevich [Fri, 14 May 2010 17:38:10 +0000 (10:38 -0700)]
Get rid of warnings when compiled with -Wformat-security
Change-Id: Iaed2edb7b43da5cb5cdd0bf641e45480633301fd
San Mehat [Fri, 30 Apr 2010 17:05:36 +0000 (10:05 -0700)]
Merge "netd: Switch throttling to use HTB instead of CBQ" into froyo
San Mehat [Fri, 30 Apr 2010 13:19:07 +0000 (06:19 -0700)]
netd: Switch throttling to use HTB instead of CBQ
Change-Id: I5247c9b5264db374442d19d903a250413057f19d
Signed-off-by: San Mehat <san@google.com>
Robert Greenwalt [Wed, 28 Apr 2010 23:05:04 +0000 (16:05 -0700)]
Fix fd leaks
When you open a file, you should remember to close it.
bug:
2639464
Change-Id: I90d25dba2a262b620373270832eb3189616c720d
Dmitry Shmidt [Fri, 23 Apr 2010 20:08:23 +0000 (13:08 -0700)]
Merge "softap: Add delay after driver start, return 0 if softap was started" into froyo
Dmitry Shmidt [Fri, 23 Apr 2010 19:43:32 +0000 (12:43 -0700)]
softap: Add delay after driver start, return 0 if softap was started
Change-Id: I3e155cc7c118c21d5e66163bd678104d812465de
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Robert Greenwalt [Fri, 23 Apr 2010 17:35:57 +0000 (10:35 -0700)]
Fix the reading of /proc/net/dev
When the bytes received counter gets too big it changes format from
name: 10 ...
name: 100 ...
name:1000 ...
The last one means sscanf can't parse a string and a long seperately - you
just get a string. Fixed by detecting a char after ':', splitting the name
and reparsing the long.
bug:
2612082
Change-Id: I84e41da1e38d24ea61f996ede9c87769abba5d22
Robert Greenwalt [Wed, 14 Apr 2010 18:53:10 +0000 (11:53 -0700)]
Don't make such noise when ppp0 is unavailable.
On sholes ppp0 comes and goes with wifi and net availability. We don't want our traffic
poller to have to care (and deal with race conditions) so just don't make so much noise
if we try to read the traffic data for a non-existing iface.
bug:
2576057
Change-Id: I8c1d721e7afc288b08cffb79f8f52f6cab55c88b
San Mehat [Fri, 9 Apr 2010 23:26:24 +0000 (16:26 -0700)]
netd: Add ingress throttling
Change-Id: Id86a0d0d0bdfa9bca36e7c7bce7e9290c8532082
Signed-off-by: San Mehat <san@google.com>
San Mehat [Wed, 7 Apr 2010 22:21:36 +0000 (15:21 -0700)]
netd: Plumb interface throttling
Change-Id: I9092a37b3d5f2bfa4f49ddc473d0a5490abaae8f
Signed-off-by: San Mehat <san@google.com>
Robert Greenwalt [Sat, 3 Apr 2010 00:40:08 +0000 (17:40 -0700)]
Fix network byte-count reading.
Some networks iface names are too long to fit in a 6-char string.
bug:
2561759
Change-Id: I571c9871db424d349bc47b4d15c6015a33be6f2a
San Mehat [Thu, 1 Apr 2010 15:31:37 +0000 (08:31 -0700)]
netd: Add skelaton support for throttling
Change-Id: I361f3c4ac30f7bb6efe4ed703405f0e843b075b4
Signed-off-by: San Mehat <san@google.com>
Robert Greenwalt [Thu, 25 Mar 2010 21:54:45 +0000 (14:54 -0700)]
Fix bug in NATing code.
Silly errors in refcount logic did the wrong thing.
Change-Id: I2cfc208615258397501450717cfcb7eb0386c9d4
Robert Greenwalt [Wed, 24 Mar 2010 23:32:55 +0000 (16:32 -0700)]
Add support for multiple dhcp ranges.
We need multiple dhcp ranges to support dhcp on different interfaces.
bug:
2533491
Change-Id: I3b568e81c048c6aff1a752ac4a81669034104413
Robert Greenwalt [Wed, 24 Mar 2010 22:43:00 +0000 (15:43 -0700)]
Make NATing add/remove iptable rules as needed
It was flushing on every unNAT, but really you want to remove just those rules. We'll
Flush when we get to 0 NATs.
bug:
2542176
Change-Id: Ia70580191b1aed754689864044de122234346011
Dmitry Shmidt [Thu, 18 Mar 2010 20:06:47 +0000 (13:06 -0700)]
softap: Add delay after startap, set and stopap calls
Change-Id: I9b34d610b3576764324efbf78bb55322d1067378
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Kenny Root [Mon, 15 Mar 2010 21:26:36 +0000 (14:26 -0700)]
netd: Use OpenSSL APIs for WPA-PSK calculation
Change-Id: Ibe2040a2ede58fcfad5b27cdb01a107fbf2c9f3d
Dmitry Shmidt [Fri, 12 Mar 2010 22:16:46 +0000 (14:16 -0800)]
netd: softap: Add softap start / stop driver commands
Change-Id: I2081e4943b6b93109288e8d764ce25a55f3b6198
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Dmitry Shmidt [Fri, 12 Mar 2010 21:04:09 +0000 (13:04 -0800)]
netd: softap: Fix driver API for SoftAP
Change-Id: I5e17b2369d5ef34ea29b0c1b0df1d4977ff109ce
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Dmitry Shmidt [Fri, 12 Mar 2010 18:01:58 +0000 (10:01 -0800)]
netd: softap: Add FW reload processing
Change-Id: I731c2e390187c0fa5f69779cd25d8f2388ee511e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Dmitry Shmidt [Tue, 9 Mar 2010 23:46:34 +0000 (15:46 -0800)]
netd: softap: Add passphrase to hex conversion
Change-Id: Ia9b141cb436336deec6d94af701e6d807baa2f99
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Dmitry Shmidt [Tue, 9 Mar 2010 18:57:59 +0000 (10:57 -0800)]
netd: softap: Change "set" to use separate arguments
Change-Id: Id5f2adb41c671f2978fa3fe939b1a3b15a537165
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Jean-Baptiste Queru [Tue, 9 Mar 2010 02:05:25 +0000 (18:05 -0800)]
Add an empty CleanSpec.mk
Change-Id: Ic22ebb3ef1b4f4a3b44fe1d7975bd851c1fc12bd
Irfan Sheriff [Wed, 3 Mar 2010 23:35:58 +0000 (15:35 -0800)]
Merge "softap: Add basic functionality directly through WEXT"
Dmitry Shmidt [Wed, 3 Mar 2010 21:14:30 +0000 (13:14 -0800)]
softap: Add basic functionality directly through WEXT
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Mike Lockwood [Wed, 3 Mar 2010 19:48:59 +0000 (14:48 -0500)]
Fix typo in UsbController::isRNDISStarted()
Signed-off-by: Mike Lockwood <lockwood@android.com>
Robert Greenwalt [Thu, 18 Feb 2010 18:54:08 +0000 (10:54 -0800)]
Add enable/disable control of USB networking
Also fix some errors in the interface control code (if we pass out all flags like so:
[up broadcast multicast]
we should probably accept that back)
Robert Greenwalt [Thu, 18 Feb 2010 18:54:08 +0000 (10:54 -0800)]
Add enable/disable control of USB networking
Kenny Root [Thu, 18 Feb 2010 18:11:50 +0000 (10:11 -0800)]
Merge "Check total string length of supplied DNS servers"
Kenny Root [Thu, 18 Feb 2010 17:59:55 +0000 (09:59 -0800)]
Check total string length of supplied DNS servers
Make sure the number of DNS servers doesn't grow past what we were
planning on handling in our string buffer.
Change-Id: Ic2d60b0a4363c806d4c3a7dfafa62930c4f5ca1f
Robert Greenwalt [Thu, 18 Feb 2010 01:42:37 +0000 (17:42 -0800)]
Hook netlink interface notification up to fwk.
The java api was there to get callbacks but the middle piece was missing.
Also has one const defined for USB control that is part of a seperate change, but no harm.
Dmitry Shmidt [Wed, 10 Feb 2010 19:10:39 +0000 (11:10 -0800)]
netd: Add Softap controller skeleton functions
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Robert Greenwalt [Thu, 4 Feb 2010 23:25:22 +0000 (15:25 -0800)]
Silence PPPDs noisy logs.
San Mehat [Wed, 3 Feb 2010 16:51:18 +0000 (08:51 -0800)]
netd: Don't print error on unknown Netlink event
Signed-off-by: San Mehat <san@google.com>
Robert Greenwalt [Mon, 1 Feb 2010 18:02:28 +0000 (10:02 -0800)]
Add specification of ms-dns arg to pppd.
This lets us tell the pc to use the tethered android as their dns server.
bug:
2281900
San Mehat [Thu, 28 Jan 2010 01:13:32 +0000 (17:13 -0800)]
netd: Remove sigchild handler and fix a bluetooth makefile bug
Signed-off-by: San Mehat <san@google.com>
San Mehat [Sat, 23 Jan 2010 14:47:59 +0000 (06:47 -0800)]
netd: Rename InterfaceGetInfoResult
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 21 Jan 2010 23:37:10 +0000 (15:37 -0800)]
netd: Add Flush out enumerating/configuring interfaces
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 21 Jan 2010 23:53:32 +0000 (15:53 -0800)]
netd: Don't break build if BT is not available for the target
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 21 Jan 2010 22:03:06 +0000 (14:03 -0800)]
netd: Add preliminary support for BT PAN
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 21 Jan 2010 17:23:06 +0000 (09:23 -0800)]
netd: Implement tty lists and tty validation
Signed-off-by: San Mehat <san@google.com>
San Mehat [Thu, 21 Jan 2010 17:22:43 +0000 (09:22 -0800)]
netd: Wait when killing tethering services
Signed-off-by: San Mehat <san@google.com>
San Mehat [Wed, 20 Jan 2010 01:19:41 +0000 (17:19 -0800)]
netd: Add support for attaching/detaching PPP daemons
Signed-off-by: San Mehat <san@google.com>
San Mehat [Tue, 19 Jan 2010 20:59:15 +0000 (12:59 -0800)]
netd: Add primitive NAT control
Update: Add stub function to validate interface existance
Signed-off-by: San Mehat <san@google.com>
San Mehat [Mon, 18 Jan 2010 17:51:02 +0000 (09:51 -0800)]
netd: Plumb in the tethering interfaces
Signed-off-by: San Mehat <san@google.com>
San Mehat [Fri, 15 Jan 2010 16:02:39 +0000 (08:02 -0800)]
netd: Initial skelaton for netd
Signed-off-by: San Mehat <san@google.com>
Nico Sallembien [Wed, 13 Jan 2010 18:47:11 +0000 (10:47 -0800)]
new project, first commit