History log of /system/netd/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d553ad32eb1d4fa3c02c0ca1aebb5e09fe0c2760 21-Sep-2012 The Android Automerger <android-build@android.com> merge in jb-mr1-release history after reset to jb-mr1-dev
0b02d05f1e2968643c42d10841dccedb63d33c48 19-Sep-2012 Zhihai Xu <zhihaixu@google.com> remove Pan service which is not used anymore.

because we replaced bluez bluetooth stack with bluedroid bluetooth stack.
This is multiple project check-in for ISSUE 6849488 Bluedroid stack, remove system/bluetooth.
Pan service depend on system/bluetooth. So both Pan service and system/bluetooth should be removed.

bug 6849488

Change-Id: I7a5a828b9b4327dbd6b6a13ec7ff4a9129ba0ca5
ndroid.mk
ommandListener.cpp
ommandListener.h
anController.cpp
anController.h
esponseCode.h
51a95096f752f772e509e0fbe2195026fb5e4872 12-Sep-2012 The Android Automerger <android-build@android.com> merge in jb-mr1-release history after reset to jb-mr1-dev
40cdfe48dbf95d4cef7bbd47bd0c0e72f72bd390 12-Sep-2012 jp abgrall <jpa@google.com> am 78b00d81: Merge "Don\'t include <linux/...> header files directly."

* commit '78b00d81ebb7e2720fe17c116bcfd086bdd1f4e7':
Don't include <linux/...> header files directly.
78b00d81ebb7e2720fe17c116bcfd086bdd1f4e7 12-Sep-2012 jp abgrall <jpa@google.com> Merge "Don't include <linux/...> header files directly."
970274a61800e047430d81269df977de9dbe45ef 12-Sep-2012 Elliott Hughes <enh@google.com> Don't include <linux/...> header files directly.

These change from kernel release to release, and no longer contain some of
the stuff you need.

Change-Id: I3fc7176cf2246aebfc0aa2a833dfa04ea8d931fc
esolverController.cpp
econdaryTableController.h
etherController.h
87482aa6d64b835ce8f6485fd5b0953d939ed94f 11-Sep-2012 Sasha Levitskiy <sanek@google.com> Demoting a non-critical error to a warning: unable to load net cmd dll.

Bug: 7141069
Change-Id: Ib4326f80fd562d845095bad38f45ceb9f3be119e
nterfaceController.cpp
f2f4e7a536ed92bedf8aed07eaf3b68459b99986 09-Sep-2012 The Android Automerger <android-build@android.com> merge in jb-mr1-release history after reset to jb-mr1-dev
bec6d04e1a84823b89e5581ea8ebcf9f08915216 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Add LOG_TAG to NetdConstants.

Bug: 7114117
Change-Id: Ifef2cfca6c1361f89ac68eead58df70efc58a8a7
etdConstants.cpp
88b58dc4f13e6cad92f4f77927e410029aefeed9 21-Aug-2012 The Android Automerger <android-build@android.com> merge in jb-mr1-release history after reset to jb-mr1-dev
6e38211b93d37a599dcab1f24d95e4cdc0cd77f9 20-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 8a3da263: Merge "Fix race condition in pthread_create()"

* commit '8a3da263f9fde42efbc54d19465ebd1f83ba35cd':
Fix race condition in pthread_create()
8a3da263f9fde42efbc54d19465ebd1f83ba35cd 20-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Fix race condition in pthread_create()"
0cdb680c7648b0f48e6513926cb0a06d290a5cbe 05-Jul-2012 Jurijs Oniscuks <jurijs.oniscuks@sonymobile.com> Fix race condition in pthread_create()

Do not send "&this->mThread" to pthread_create() as newly
created thread can "delete this" before pthread_create() saves
thread id. This would lead to heap corruption.

Change-Id: I9c4cd5e1002b85985514a36ae542778a783db6fb
nsProxyListener.cpp
nsProxyListener.h
63f0b01812d3ce058b36eee1fd0ea9fa2676a0b0 13-Aug-2012 The Android Automerger <android-build@android.com> merge in jb-mr1-release history after reset to jb-mr1-dev
5c4faf7602de0268aa09a3a525b427f83d617b5c 27-Jul-2012 Haoyu Bai <bhy@google.com> Fix idletimer iptable rules.

Now idletimer should be triggered by every packet.

Cherry-picked from commit 8c54ec5de3818ff0c0cfc735c817be2516454415 in
master. DO NOT MERGE

Change-Id: I48e6fed5cb48edc51b5fbe87091e5dbb3f862cb7
ommandListener.cpp
dletimerController.cpp
dletimerController.h
718748c19780ade268023f638bfaee4fa2934f39 06-Aug-2012 The Android Automerger <android-build@android.com> merge in jb-mr1-release history after reset to jb-mr1-dev
329c3b4681e2ca4831adc7c8cf257e9e32971710 31-Jul-2012 Sasha Levitskiy <sanek@google.com> Changes the interface command API from static lib to a dynamic one

Change-Id: I9116491a3f5dfc4590ffab367a224fde37a4fd50
ndroid.mk
nterfaceController.cpp
nterfaceController.h
006feb0aafa681b3f90eca8cafe80caeab8101f4 30-Jul-2012 The Android Automerger <android-build@android.com> merge in jb-mr1-release history after reset to jb-mr1-dev
103e6090bc8350b93ff4486c0b37e8b70e7d9db8 28-Jul-2012 Haoyu Bai <bhy@google.com> Merge "Fix idletimer iptable rules."
2eab1f762badb7ba46b95716e62ea4548a979903 27-Jul-2012 Dmitry Shmidt <dimitrysh@google.com> netd: Add initial interface driver command support

Change-Id: I1d34e43fc6a3336d0cd06e9db1069467382f210f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
nterfaceController.cpp
nterfaceController.h
f85a796e02f12f740098513dac8ec63289d31ddb 27-Jul-2012 Haoyu Bai <bhy@google.com> Fix idletimer iptable rules.

Now idletimer should be triggered by every packet.

Change-Id: I6c6ea70cb9b37a58dcb0fd8e88df5f987e5ef150
ommandListener.cpp
dletimerController.cpp
dletimerController.h
ad5b41fae92f20fa9fff334c459dd400de0b8285 20-Jul-2012 Nick Kralevich <nnk@google.com> ndc: get rid of arbritrary command length limit

Change-Id: I6123aa916a1f69bbfba58c26e6f150dfdec8c991
etherController.cpp
dc.c
b082c588930301464981a796f2f28d17df2a2f5e 18-Jul-2012 Haoyu Bai <bhy@google.com> Merge "Changed format of interface class acitivity message."
72779ad68ae5d2151d15a30791ca7203f3cb3026 17-Jul-2012 Jeff Sharkey <jsharkey@android.com> Merge "Introduce basic firewall controls."
d8c64026aaae5a9987151b719bd840ec7d68747a 14-Jul-2012 Jeff Sharkey <jsharkey@android.com> Introduce basic firewall controls.

Creates a separate firewall chain that can be used to allow/deny
traffic based on rules.

Firewall is disabled by default. When enabled, it supports four
types of rules: allowing traffic based on iface name, based on egress
source IP, based on egress destination IP and port, and based on
local UID.

Bug: 5756357
Change-Id: I97f894dca6bddb93b3c56478c5297f79d727cdab
ndroid.mk
ommandListener.cpp
ommandListener.h
irewallController.cpp
irewallController.h
db28cbecc5cddae4dff740a299d311f18ddea523 17-Jul-2012 Haoyu Bai <bhy@google.com> Changed format of interface class acitivity message.

For the sake of consistency, format of interface class activity message
is changed to "NNN IfaceClass <active/idle> <label>" and using single
response code for interface class activity.

Change-Id: I34dc5c37cc611d05172060b2a1e4ceac0a0f0588
etlinkHandler.cpp
esponseCode.h
1994410a3df367c7ce1083dc3f226c8ab68f4fdc 13-Jul-2012 Matthew Xie <mattx@google.com> HACK: Need to startup dhcpd for non-system bluetooth stack

Add TODO comments to remove start/stopReverseTethering
Return error code with exit() in child process in startReverseTethering
when executing dhcpcd fails.
This is needed so we can get BT certification.
The cleanup is tracked in stopship b/6820232

Change-Id: I98a1c8aedfa042b1824de7d8c69f2600c9bfcf29
etherController.cpp
9caaa44f635f86200e2b9b4cd36d1471ce910a6a 21-Jun-2012 Matthew Xie <mattx@google.com> change logx to alogx

Change-Id: Ib535b04a6b18d5d35012795b07a705c6483f343d
ommandListener.cpp
etherController.cpp
9589a4c6e0b6a5ec60c65b248e7deff2805749b2 15-Apr-2012 zzy <zhenye@broadcom.com> Added bluetooth reverse tether start/stop cmd
ommandListener.cpp
etherController.cpp
etherController.h
8e188ed5c989ddcc07f0f5e9839493c22d17e7b6 13-Jul-2012 Jeff Sharkey <jsharkey@android.com> Consolidate iptables chain management.

Move creation and management of module iptables chains up into
CommandListener, which gives better visibility into ordering.

Change-Id: If0c94187c6e59a20840b035d7241057f45a0f74b
andwidthController.cpp
andwidthController.h
ommandListener.cpp
dletimerController.cpp
dletimerController.h
atController.cpp
atController.h
etdConstants.cpp
etdConstants.h
ogwrapper.c
em_iptables_hook.cpp
em_iptables_hook.h
90f374a7f4b111eeb1ed19feb52350c8f32c169d 30-Jun-2012 Haoyu Bai <bhy@google.com> Merge "Add a class lable parameter to idletimer."
98f65d32b1530b4da6050e38d52f955710577efb 29-Jun-2012 Haoyu Bai <bhy@google.com> Add a class lable parameter to idletimer.

Now the idletimer should be setup by this command:
ndc idletimer add <interface> <timeout> <class label>

Class label can be a number or string to identify device type, such as
mobile or wifi. Idletimer will send label in the netd message instead
of the actual interface name.

Change-Id: Ic8b69dc5e38a4436c74723697905643a1214aa2a
ommandListener.cpp
dletimerController.cpp
dletimerController.h
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.h
esponseCode.h
778ffe4d3dcab5453b57a0d960ea7f066374b953 20-Jun-2012 Dmitry Shmidt <dimitrysh@google.com> netd: interface: Allow setcfg command without addresses

Change-Id: I47ebe05b2f3daf9754b4baf2e62d46dea76f67b1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ommandListener.cpp
d0daeab8e89e7fcc97cfcce701db45c07aa7ab52 20-Jun-2012 Irfan Sheriff <isheriff@google.com> Merge "Clean up softap interface"
7e9eb7b48345af69283afa7ca58d3be0a329931b 16-Jun-2012 Irfan Sheriff <isheriff@google.com> Clean up softap interface

Remove old IOCTL based interface

Change-Id: I5c46964d025848ce8a0e0195ff213ccd8b33d508
ndroid.mk
ommandListener.cpp
oftapController.cpp
oftapController.h
4f931639b8d4fd92db16431d97e3fd18feb477f9 15-Jun-2012 Jean-Baptiste Queru <jbq@google.com> am 9997f9a3: resolved conflicts for merge of e36a3a2f to jb-dev-plus-aosp

* commit '9997f9a3edac2baac244c2fe8e49685a3be9f482':
Run dnsmasq with options --keep-in-foreground and --pid-file.
9997f9a3edac2baac244c2fe8e49685a3be9f482 15-Jun-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of e36a3a2f to jb-dev-plus-aosp

Change-Id: I566b0e96327f318313c17a11d35539554b075f59
e36a3a2f998a62b0bf61d1ffff4a752746163cf4 14-Jun-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Run dnsmasq with options --keep-in-foreground and --pid-file."
158e8f3613093fdf7b146cab89b08e8dc457a903 04-Jun-2012 Jeff Sharkey <jsharkey@android.com> am c9ed2f47: (-s ours) Allow additional interface flags. Do not merge

* commit 'c9ed2f4706fa46e41a6ebbcd9a529d75c1ac84c5':
Allow additional interface flags. Do not merge
c9ed2f4706fa46e41a6ebbcd9a529d75c1ac84c5 02-Dec-2011 Jeff Sharkey <jsharkey@android.com> Allow additional interface flags. Do not merge

Cherry-pick from master to fix b/6537483

Bug: 5686458
Change-Id: I9c5147446636d32bb3a420a05199870cca5f013d
ommandListener.cpp
033f07ad2e328f40c44cdd253f4cce872c357e3c 16-May-2012 The Android Open Source Project <initial-contribution@android.com> am 034ed176: Reconcile with jb-release nakasi-factoryrom-release

* commit '034ed1763cf10f060f73d10ee6b4abef896fc3ef':
Do not send extra data the client is not consuming.
034ed1763cf10f060f73d10ee6b4abef896fc3ef 16-May-2012 The Android Open Source Project <initial-contribution@android.com> Reconcile with jb-release nakasi-factoryrom-release

Change-Id: I51d86c45479eb7be5e06325d344a6d1c21fd5247
0a998cb37a2fb29f5db56150502dda10a47c8156 09-May-2012 JP Abgrall <jpa@google.com> am 40baed83: netd: NetlinkHandler: explicitly ignore "platform" and "backlight" events

* commit '40baed83f89e8d8f834cdfa94d0615076463c04b':
netd: NetlinkHandler: explicitly ignore "platform" and "backlight" events
c9e67914ac128f3e3ef5241388be1d9089af6a63 09-May-2012 JP Abgrall <jpa@google.com> am 29e8de22: BandwidthController: Fix double counting

* commit '29e8de22ad806bdcaa971ffeeb360c9f908aa346':
BandwidthController: Fix double counting
ae0effefd54bb836e6d1efaf02bf78c7e8573e0b 09-May-2012 JP Abgrall <jpa@google.com> am b1d24094: BandwidthController: Avoid setting a uid multiple times in NaughtyApps

* commit 'b1d24094c2c5d48bbb3dfad4a0551ff0bf77ce6c':
BandwidthController: Avoid setting a uid multiple times in NaughtyApps
52a236ff2ff5c908bdf56d579852e0195962bfe9 09-May-2012 JP Abgrall <jpa@google.com> am f66d6e9d: BandwidthController: hookup qtaguid for tracking closest to devices.

* commit 'f66d6e9db6be3e94b80c59fab99e237d2e2968c5':
BandwidthController: hookup qtaguid for tracking closest to devices.
cef54c42c914900e17ec820054dbf85eca225063 09-May-2012 The Android Automerger <android-build@android.com> merge in jb-release history after reset to jb-dev
40baed83f89e8d8f834cdfa94d0615076463c04b 08-May-2012 JP Abgrall <jpa@google.com> netd: NetlinkHandler: explicitly ignore "platform" and "backlight" events

The new vsync api uses uevents to notify userspace... 60 events/sec. :(
Don't log unexpected event's subsystem if it is one of the known ones.

Change-Id: Ie900898b326c9451b76ac5f6ba047870fd62093a
etlinkHandler.cpp
b756f69226d86380ea88b9330356c9fd210dbafe 08-Sep-2011 Peter Nilsson <peter6.nilsson@sonyericsson.com> Run dnsmasq with options --keep-in-foreground and --pid-file.

Tell dnsmasq to run with option --keep-in-foreground instead
of --no-daemon, which is meant for debug purposes only. Also
use option --pid-file to tell dnsmasq not use a pid file.

Change-Id: I82858d911e94407b2511d8ce8388be553f2f09f6
etherController.cpp
29e8de22ad806bdcaa971ffeeb360c9f908aa346 03-May-2012 JP Abgrall <jpa@google.com> BandwidthController: Fix double counting

Only have qtaguid only count in the bw_INPUT/bw_OUTPUT chains
and not in the costly_* subchains.
We don't use --goto anymore.

Change-Id: I2eded2e0fa12b46843d32e74406cfeda85f242d1
andwidthController.cpp
a315f96c9346428e3de2edf0bb98074b0bf7bc92 30-Apr-2012 The Android Automerger <android-build@android.com> merge in jb-release history after reset to jb-dev
36efb737ff145cc7b6741080cef4472adae2728c 27-Apr-2012 JP Abgrall <jpa@google.com> am e07effe6: netd: Netlink: Use KOBJECT_UEVENT instead of IDLETIMER

* commit 'e07effe6f8e9340dbee9428b29672adfb647c413':
netd: Netlink: Use KOBJECT_UEVENT instead of IDLETIMER
9e4f02bdcf8f4646645c3b8d9a0f6e7ee4d18e92 27-Apr-2012 JP Abgrall <jpa@google.com> am ad729ac1: bandwidthcontroller: hide iptables errors when they don\'t matter

* commit 'ad729ac11e080b1f1bdd9cd32807d9ae74ce2a63':
bandwidthcontroller: hide iptables errors when they don't matter
ff28f8a7dd279cef6506b3f06abad0436b2ad67d 27-Apr-2012 JP Abgrall <jpa@google.com> am e4c501c3: netd: NatController: don\'t setup iptables hooks in constructor.

* commit 'e4c501c3a78f21d6d6e4ff0ba9090185cff1be8c':
netd: NatController: don't setup iptables hooks in constructor.
b1d24094c2c5d48bbb3dfad4a0551ff0bf77ce6c 27-Apr-2012 JP Abgrall <jpa@google.com> BandwidthController: Avoid setting a uid multiple times in NaughtyApps

Use the naughtyAppUids list before inserting a new app.

Bug: 6292513
Change-Id: I6726b7d589569a6198b8a0ff32c32c0e40ed5319
andwidthController.cpp
f66d6e9db6be3e94b80c59fab99e237d2e2968c5 27-Apr-2012 JP Abgrall <jpa@google.com> BandwidthController: hookup qtaguid for tracking closest to devices.

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
andwidthController.cpp
e07effe6f8e9340dbee9428b29672adfb647c413 27-Apr-2012 JP Abgrall <jpa@google.com> netd: Netlink: Use KOBJECT_UEVENT instead of IDLETIMER

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
etlinkHandler.cpp
etlinkManager.cpp
ad729ac11e080b1f1bdd9cd32807d9ae74ce2a63 25-Apr-2012 JP Abgrall <jpa@google.com> bandwidthcontroller: hide iptables errors when they don't matter

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
andwidthController.cpp
andwidthController.h
ommandListener.cpp
e4c501c3a78f21d6d6e4ff0ba9090185cff1be8c 25-Apr-2012 JP Abgrall <jpa@google.com> netd: NatController: don't setup iptables hooks in constructor.

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
atController.cpp
11337e830010122e9f68e3b3708fd84b6513a30e 25-Apr-2012 The Android Automerger <android-build@android.com> merge in jb-release history after reset to jb-dev
1fb02dfc26e06b83e756ab3538b7ebc2136f535d 25-Apr-2012 JP Abgrall <jpa@google.com> bandwidthcontroller: hide iptables errors when they don't matter

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
andwidthController.cpp
andwidthController.h
ommandListener.cpp
458f318280c3b98d84958c63899c949c71612b1a 25-Apr-2012 JP Abgrall <jpa@google.com> netd: NatController: don't setup iptables hooks in constructor.

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
atController.cpp
73be1adb3b1a63185b97ecc9c61ae75a7994ee86 24-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Store certain MDNS fields as quoted strings"
70ecc6341661b831794519497d53c8fcfe98c64c 23-Apr-2012 The Android Automerger <android-build@android.com> merge in jb-release history after reset to master
4833e47bb886db80cf4ec23a00cc4ba2a1f113e7 20-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Store certain MDNS fields as quoted strings

They sometimes contain spaces so a space-delimited response requires more care.

bug: 6353048
Change-Id: I84d5cc156bf4d9f1419b7202e9aa00ddb7209b2f
DnsSdListener.cpp
0031cead820149e2fe3ccb3cc2fe05758a3cb5c2 18-Apr-2012 JP Abgrall <jpa@google.com> netd: Idletimer vs Nat vs Bandwidth controllers

* 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: Ashish Sharma <ashishsharma@google.com>
Signed-off-by: JP Abgrall <jpa@google.com>
Change-Id: Ia57450c09166ce20f21d1e3b49047ef1e98f2a3d
ndroid.mk
andwidthController.cpp
andwidthController.h
ommandListener.cpp
ommandListener.h
dletimerController.cpp
dletimerController.h
atController.cpp
atController.h
etdConstants.cpp
etdConstants.h
6df79da87b57437505eedd7fdf5359f9e67c38dd 19-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add "metered" flag to DHCP offer vendor info.

Bug: 6344821
Change-Id: Ic8cd235a1cbdd848ff839f6f0f03161de2090751
etherController.cpp
f0389ca9cc38a9891fa95d1be3e1df73b4fecf9c 16-Apr-2012 The Android Automerger <android-build@android.com> merge in jb-release history after reset to master
745e09fc5694e73920aaad18a626275597bdddb1 29-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Initial release of mdns interface.

Uses extern/mdnsresponder and communicate with the framework via nativedaemonconnector.

Change-Id: I5c090528197afa090836d7cb5bf75dfba33ff11c
ndroid.mk
DnsSdListener.cpp
DnsSdListener.h
esponseCode.h
ain.cpp
dc.c
6337b88ce4438d224819e9b381ddaf2873bbfdda 11-Apr-2012 Ashish Sharma <ashishsharma@google.com> netd: Add support for interface idletimer netlink notifications.

Change-Id: Ifda5b8ecf68533eea42b133dbe0a581b4401ab11
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.cpp
etlinkManager.h
esponseCode.h
b146ae64bda6f82b390323b6586b4f37b981572b 03-Apr-2012 Mike Lockwood <lockwood@google.com> Merge remote-tracking branch 'goog/ics-aah'
2b0215e32609749c897247200ea21cf8d28af8e2 21-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am 19ac8238: am 99c65114: Reconcile with ics-mr1-release

* commit '19ac823851c7f8691d5aecbc5a0149ba72ed806c':
19ac823851c7f8691d5aecbc5a0149ba72ed806c 21-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am 99c65114: Reconcile with ics-mr1-release

* commit '99c65114b976fd8ceb54021cede0dd63f8826a02':
99c65114b976fd8ceb54021cede0dd63f8826a02 21-Mar-2012 The Android Open Source Project <initial-contribution@android.com> Reconcile with ics-mr1-release

Change-Id: I6cf64c289005dccb3d60c972686b7c335aa015a4
628b804692d10b53ad40a635811e9f28e0028f5c 21-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am d7a9ff6d: am 17654593: Reconcile with ics-mr1-release

* commit 'd7a9ff6ddc2895d298598e53cf7b967742e0d4da':
d7a9ff6ddc2895d298598e53cf7b967742e0d4da 21-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am 17654593: Reconcile with ics-mr1-release

* commit '176545930d60a366734bbf70c3b60332a606c01e':
176545930d60a366734bbf70c3b60332a606c01e 21-Mar-2012 The Android Open Source Project <initial-contribution@android.com> Reconcile with ics-mr1-release

Change-Id: If53997c291c7c51332b57f572fbbfc70f7527166
4e2ec226d09f2ffbddc873eb6e42135e4e756de3 21-Mar-2012 The Android Automerger <android-build@android.com> merge in jb-release history after reset to master
093e3c70de6caa21cc004db868fe2a9c1055661a 16-Mar-2012 Dmitry Shmidt <dimitrysh@google.com> softap: Remove wmm_enabled=1 flag from SoftAP config

Change-Id: Id2b43001d95259fbaf25108bf95dfae3802b79bf
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
690540e756068fd663524a2993a0bdbb1b3bd0aa 12-Mar-2012 The Android Automerger <android-build@android.com> merge in jb-release history after reset to master
3c903b555975fa59d6688a0a6417ac7512c202e7 10-Mar-2012 The Android Automerger <android-build@android.com> merge in ics-mr1-release history after reset to ics-mr1
63db18d9ab1802d56a8f0bb6314d07f0827b9aa3 10-Mar-2012 The Android Automerger <android-build@android.com> merge in ics-mr1-release history after reset to ics-mr1
65359032bce20c3c2cd73c36f2eda11dbadeff54 09-Mar-2012 Selim Gurun <sgurun@google.com> Merge "We are not reverting this CL since it was a temporary fix and we just submitted the proper one."
40e0c13d6b77a9260b6da4c9e11cca8a5f994ea2 09-Mar-2012 Selim Gurun <sgurun@google.com> We are not reverting this CL since it was a temporary fix and we just submitted the proper one.

Revert "Do not send extra data the client is not consuming."

This reverts commit 6217272e1a41fc9827250c675a0499d2091ec6ac
nsProxyListener.cpp
00a7f626ec5e94f5be00e91655a54ffd4fb94ab7 09-Mar-2012 Selim Gurun <sgurun@google.com> Merge "Ignore Sigpipe in netd"
0c6924c18d857c9e76faae8933183e0a064222fc 09-Mar-2012 Dmitry Shmidt <dimitrysh@google.com> Merge "ndc: Add default sequence number to command"
c1044d4507a79166f3cfac9cacf669888f049ea9 09-Mar-2012 Selim Gurun <sgurun@google.com> Ignore Sigpipe in netd

Bug:6141847

Ignore sigpipe in netd. This will enable us remove the temporary
changes in DnsProxyListener that we added to temporarily resolve
issue 6138617.

Change-Id: I4bc13ac0fcf9dd0e7641c2d4459b1eab0ed50f2a
ain.cpp
eca2a7819bf3fbc5fddfda96321c595f5d819d28 09-Mar-2012 The Android Automerger <android-build@android.com> merge in ics-mr1-release history after reset to ics-mr1
3ebc33bd4d29326e0a8cf082b8bc07999ff3a762 09-Mar-2012 Selim Gurun <sgurun@google.com> Do not send extra data the client is not consuming.

Bug:6138617

This is to temporarily fix a problem in netd. In case of an error do
not send extra data that the client is not expecting. This causes a
netd crash.

Change-Id: Iadb375e326577857034c2a7d2e962e4242d4735f
nsProxyListener.cpp
6217272e1a41fc9827250c675a0499d2091ec6ac 09-Mar-2012 Selim Gurun <sgurun@google.com> Do not send extra data the client is not consuming.

Bug:6138617

This is to temporarily fix a problem in netd. In case of an error do
not send extra data that the client is not expecting. This causes a
netd crash.

Change-Id: Iadb375e326577857034c2a7d2e962e4242d4735f
nsProxyListener.cpp
44ec9035d3821f17d185032ed64446cabae266bf 09-Mar-2012 Dmitry Shmidt <dimitrysh@google.com> ndc: Add default sequence number to command

Change-Id: I81ec40b8dd560eb9b6430eafc05d5e7714e0f042
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
dc.c
cd6821f6d334b60537d6d6d5966765a25b0c5ba0 08-Mar-2012 Nick Kralevich <nnk@google.com> am e1176866: am 88ec4ed2: am 1babab9f: netd: do check on command, not buffer.

* commit 'e1176866629c90bc1403926186bf2b7efc736a2a':
e70e9bd68fdccd14cb10b16190e244e089ecb36b 08-Mar-2012 Nick Kralevich <nnk@google.com> am e2f132b7: (-s ours) am 19d7b786: am 1babab9f: netd: do check on command, not buffer.

* commit 'e2f132b7a224d1c2287292132b93f53b09d617cd':
netd: do check on command, not buffer.
5aed6e67ba325d6b9efe1ce5637590a0e3b1a26d 08-Mar-2012 Selim Gurun <sgurun@google.com> Merge "Prevent potential stall on dns proxy operations."
e1176866629c90bc1403926186bf2b7efc736a2a 07-Mar-2012 Nick Kralevich <nnk@google.com> am 88ec4ed2: am 1babab9f: netd: do check on command, not buffer.

* commit '88ec4ed21deb1340675ba026fda46e6183c2e219':
e2f132b7a224d1c2287292132b93f53b09d617cd 07-Mar-2012 Nick Kralevich <nnk@google.com> am 19d7b786: am 1babab9f: netd: do check on command, not buffer.

* commit '19d7b786eed1c69a2d9d6d0764ad9cf8e97b9f72':
netd: do check on command, not buffer.
19d7b786eed1c69a2d9d6d0764ad9cf8e97b9f72 07-Mar-2012 Nick Kralevich <nnk@google.com> am 1babab9f: netd: do check on command, not buffer.

* commit '1babab9febdbd05b7b6d72e0728f49ee8d4b9bd2':
netd: do check on command, not buffer.
88ec4ed21deb1340675ba026fda46e6183c2e219 07-Mar-2012 Nick Kralevich <nnk@google.com> am 1babab9f: netd: do check on command, not buffer.

* commit '1babab9febdbd05b7b6d72e0728f49ee8d4b9bd2':
netd: do check on command, not buffer.
d458176c9ba25d10a27d4265efb5a68ba6bad3be 07-Mar-2012 Nick Kralevich <nnk@google.com> am 1babab9f: netd: do check on command, not buffer.

* commit '1babab9febdbd05b7b6d72e0728f49ee8d4b9bd2':
netd: do check on command, not buffer.
1babab9febdbd05b7b6d72e0728f49ee8d4b9bd2 07-Mar-2012 Nick Kralevich <nnk@google.com> netd: do check on command, not buffer.

Bug: 6132094
Change-Id: I76aef21b07c07db76bbc6587ae732b1ceb4488ce
ogwrapper.c
2e9caa7fd4ace0fbf187cb5e7fe1426693151e0e 07-Mar-2012 Nick Kralevich <nnk@google.com> netd: do check on command, not buffer.

Bug: 6132094
Change-Id: Icb3b0d0b2a0fd795c05162afc8791729bfa5d075
ogwrapper.c
23c40730b49cd6dda04acb9ce2482edfeea2fde7 07-Mar-2012 Glenn Kasten <gkasten@google.com> Merge "Remove reference to hard-coded cpuctl path for bg"
7e6e42e3e67277320299e7325d2ee65f8f1213d6 06-Mar-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Use the new command numbering scheme."
c4bbfa247dbe4dda17e28694d49afd3ec0b06bad 06-Mar-2012 Glenn Kasten <gkasten@google.com> Remove reference to hard-coded cpuctl path for bg

As part of scheduling policy cleanup, remove/isolate references to the
scheduling policy files and APIs.

In this case, logwrap is not used currently due to bug 5144246, and even
if it were the "background" parameter was 0.

Change-Id: Ibf7fa2617a0e485c9868b22b378636728d16622a
andwidthController.cpp
ppController.cpp
ogwrapper.c
e89a2d1bc67feeb51307e35666df2254f112421f 06-Mar-2012 Mathias Agopian <mathias@google.com> Merge "remove dependency on utils/List.h"
f00db28f37f1b5509598fef586036ff0a52ec30b 06-Mar-2012 Mathias Agopian <mathias@google.com> remove dependency on utils/List.h

Change-Id: I45c7e2cf9fe07f65259af6fa22d719259386912c
ist.h
atController.h
anController.h
ppController.h
oftapController.h
etherController.h
7d16ba20b16cab4cb41b434fd80088e247811130 03-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am 9c2d6591: am c91e3d47: Reconcile with ics-mr1-release

* commit '9c2d659130f57082adafa9c0a86d308cb4fff6e7':
9c2d659130f57082adafa9c0a86d308cb4fff6e7 03-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am c91e3d47: Reconcile with ics-mr1-release

* commit 'c91e3d476a8002fc6e8f994152be5dc4b3b85489':
c91e3d476a8002fc6e8f994152be5dc4b3b85489 03-Mar-2012 The Android Open Source Project <initial-contribution@android.com> Reconcile with ics-mr1-release

Change-Id: I94123eabf7bde1c98440858acbddacca8f91c4bb
d0c59ab88e7c449e703aebbb8c137461685d8253 03-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am e03c41b5: am 4d00f912: Reconcile with ics-mr1-release

* commit 'e03c41b50bd4bcfdf8a1c9f965200ab1a783b1d6':
e03c41b50bd4bcfdf8a1c9f965200ab1a783b1d6 03-Mar-2012 The Android Open Source Project <initial-contribution@android.com> am 4d00f912: Reconcile with ics-mr1-release

* commit '4d00f91201adc92d2d7fc56322f264db2fa7c816':
4d00f91201adc92d2d7fc56322f264db2fa7c816 03-Mar-2012 The Android Open Source Project <initial-contribution@android.com> Reconcile with ics-mr1-release

Change-Id: I939f27b0ec63aa664bd606bd6ac7af4433d67c18
e0cbe1e9349b1c7ea2ef65ac4fecd3f328f3f456 02-Mar-2012 The Android Automerger <android-build@android.com> merge in ics-mr1-release history after reset to ics-mr1
ddb34755fb54882b3ece8d4919593e26a2c1cfcb 28-Feb-2012 Selim Gurun <sgurun@google.com> Prevent potential stall on dns proxy operations.

Update wire protocol to return and process error code first. This
will make sure dns proxy operations do not stall when an internal
error happens.

Change-Id: I65595abb0638722ccd877f69057bd435ca06e524
nsProxyListener.cpp
esponseCode.h
0cd9ba45680acc2f5c139d7765c135b246d65108 01-Mar-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> am b7aeeb6c: am 500e77d5: am 3c20787d: Increase the valid name of the iface to IFNAMSIZ

* commit 'b7aeeb6cf2d473639b1a495361d888cbf52ab6c5':
a8e59f8c50aed3f91dead377b8ae21646978506c 16-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Use the new command numbering scheme.

Support multiple commands on a single socket via command numbers.
Native DaemonConnector has been changed, so we need to use it here
too.

bug:5864209
Change-Id: I084a284db38b996e7965bb9dd18440636eff9801
ommandListener.cpp
4e157a5c901baa020dcc71ca453c31d462272e50 29-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 924e6e4d to master

Change-Id: I98212c9d7004a9ae38e463036ae6ca97b9569dda
b7aeeb6cf2d473639b1a495361d888cbf52ab6c5 29-Feb-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> am 500e77d5: am 3c20787d: Increase the valid name of the iface to IFNAMSIZ

* commit '500e77d5f596b9ee488ff2cf4309d81525c0d6fd':
924e6e4d36308e65ebdbd4beaf72193768ad3be5 29-Feb-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> am 7de67315: am 3c20787d: Increase the valid name of the iface to IFNAMSIZ

* commit '7de673157ed86b0ba4705a071380a103c1d1841e':
Increase the valid name of the iface to IFNAMSIZ
7de673157ed86b0ba4705a071380a103c1d1841e 29-Feb-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> am 3c20787d: Increase the valid name of the iface to IFNAMSIZ

* commit '3c20787d7935c2016e8e3cc49d8f15647c12c41c':
Increase the valid name of the iface to IFNAMSIZ
500e77d5f596b9ee488ff2cf4309d81525c0d6fd 29-Feb-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> am 3c20787d: Increase the valid name of the iface to IFNAMSIZ

* commit '3c20787d7935c2016e8e3cc49d8f15647c12c41c':
Increase the valid name of the iface to IFNAMSIZ
81d9370690bebbc93c86a288fada73457b95942b 29-Feb-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> am 3c20787d: Increase the valid name of the iface to IFNAMSIZ

* commit '3c20787d7935c2016e8e3cc49d8f15647c12c41c':
Increase the valid name of the iface to IFNAMSIZ
3c20787d7935c2016e8e3cc49d8f15647c12c41c 12-Jan-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> Increase the valid name of the iface to IFNAMSIZ

Define MAX_IFACE_LENGTH as IFNAMSIZ instead of 10, to
prevent netd from treating an interface name 'rmnet_sdio0'
as invalid.
Also fix an off-by-one error.

bug:5675718
Change-Id: I2b6ba823c89941031e5898b24dab388cd9c2dae8
atController.cpp
econdaryTableController.cpp
econdaryTableController.h
bcd2f5b830c3b1bbbeb22fb45a17dafb8ead789b 29-Feb-2012 Dmitry Shmidt <dimitrysh@google.com> Merge "netd: softap: Add ieee80211n=1 parameter for hotspot"
fa81a805da643421a5bcb182e7860824532b2776 28-Feb-2012 Dmitry Shmidt <dimitrysh@google.com> netd: softap: Add ieee80211n=1 parameter for hotspot

Change-Id: I73d862494c186a08066d8e3478667055bfc831a1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
c2b26cb83d9bf3f91e986625efcc40fc8eb79a13 23-Feb-2012 Nick Kralevich <nnk@google.com> BandwidthController: fix format string bugs

In 876666947664c718a8d0cae9bbddb06cc91f912c, a new %s
was added to ALERT_IPT_TEMPLATE. Not all users of this string
were updated.

This change modifies ALERT_IPT_TEMPLATE to be a #define, which
allows gcc's format string detection work.

Add -Werror=format to error out on any string format warning.

Testing: Code compiles. I don't know how to test this change
properly.

Bug: 5948299
Change-Id: I0ec307972e6bf50abd8ba099166c22069a6c6580
ndroid.mk
andwidthController.cpp
andwidthController.h
0a379691e04700b3b44948450b1e3db92ef2ec01 13-Feb-2012 Dmitry Shmidt <dimitrysh@google.com> netd: softap: Add wmm_enabled=1 option

Change-Id: I3742e1130e3d9e3074a67f2e1bdd13ef11bb77dc
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
9ba8522270c907703e377335cdc912c6669eccce 01-Feb-2012 Robert Greenwalt <robdroid@android.com> Merge "Increase the valid name of the iface to IFNAMSIZ"
6e56cddd87f48fd12da4bcf125504906ed936561 01-Feb-2012 The Android Open Source Project <initial-contribution@android.com> am c5c68d7b: am ad8126d0: Reconcile with ics-mr1-release

* commit 'c5c68d7b9b92b0f7f151fec20359ab75ea5fbc34':
c5c68d7b9b92b0f7f151fec20359ab75ea5fbc34 01-Feb-2012 The Android Open Source Project <initial-contribution@android.com> am ad8126d0: Reconcile with ics-mr1-release

* commit 'ad8126d0199af924f8036a81297e1f67c3bba7ab':
ad8126d0199af924f8036a81297e1f67c3bba7ab 01-Feb-2012 The Android Open Source Project <initial-contribution@android.com> Reconcile with ics-mr1-release

Change-Id: Ica795e32aa94c9ea21b4a4f2acd84a9979c59c09
d14fd4f83ffeea4ad1cd559a41f775f6814565cc 12-Jan-2012 Jaime A Lopez-Sollano <jaimel@quicinc.com> Increase the valid name of the iface to IFNAMSIZ

Define MAX_IFACE_LENGTH as IFNAMSIZ instead of 10, to
prevent netd from treating an interface name 'rmnet_sdio0'
as invalid.
Also fix an off-by-one error.

Change-Id: If6b2b27d2da6eb72f01c090cbe4f7dc2b9c296ae
atController.cpp
econdaryTableController.cpp
econdaryTableController.h
6db274f1b2d56573adb2e816fc3bc816f1d0707a 01-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Keep better tabs on secondary tables."
c462177bd58e3bf0ac4f618934dae060569e3e0b 31-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Keep better tabs on secondary tables.

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
ndroid.mk
atController.cpp
atController.h
etdConstants.cpp
etdConstants.h
econdaryTableController.cpp
econdaryTableController.h
hrottleController.cpp
em_iptables_hook.cpp
7f442558d163cae1fda57104cbc8ed35a88c8fff 21-Jan-2012 The Android Open Source Project <initial-contribution@android.com> am a201914b: Reconcile with ics-mr1-release

* commit 'a201914b3b2f6910b4ce4d58a4f170d9ebaeb174':
a201914b3b2f6910b4ce4d58a4f170d9ebaeb174 19-Jan-2012 The Android Open Source Project <initial-contribution@android.com> Reconcile with ics-mr1-release

Change-Id: I2e12ef9428b2f10e7cc87199edfa090cb9c7167e
7c73e8951d91b5afe9d52f88d7ed3a09d120a725 19-Jan-2012 JP Abgrall <jpa@google.com> netd: Rename LOGI/LOGE to ALOGI/ALOGE

The merge from ics-mr1 branch pulled in some oldschool LOGE/LOGI calls.

Change-Id: I3c452198375c4cdce085307e844f1d6aa491225b
em_iptables_hook.cpp
053a99cef7b6d87a52216df7845b225703c74462 19-Jan-2012 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am b210b180: am 4ab46857: Add back hook for inserting OEM specific iptables rules.

* commit 'b210b1806c740bf66eb04eb8e8d8ee75c01652dd':
Add back hook for inserting OEM specific iptables rules.
41c2f3ee4fb15f9fbdc22b163dc97e06e2109a7d 19-Jan-2012 The Android Automerger <android-build@android.com> merge in ics-mr1-release history after reset to ics-mr1
eaad0621a67adbf3e450ef22e234bb7d298b5f29 19-Jan-2012 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am 4ab46857: Add back hook for inserting OEM specific iptables rules.

* commit '4ab468577647d1ee73810b89d2287eaa5546fecb':
Add back hook for inserting OEM specific iptables rules.
b210b1806c740bf66eb04eb8e8d8ee75c01652dd 19-Jan-2012 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am 4ab46857: Add back hook for inserting OEM specific iptables rules.

* commit '4ab468577647d1ee73810b89d2287eaa5546fecb':
Add back hook for inserting OEM specific iptables rules.
4ab468577647d1ee73810b89d2287eaa5546fecb 12-Jan-2012 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Add back hook for inserting OEM specific iptables rules.

The functionality was lost during merge in ICS branch.
This patch is adding back OEM iptables hook in netd.

Bug:5862460
Change-Id: I9444b8c53e8b84fea2002c2c1d9ba42e45ae5f0c
ndroid.mk
andwidthController.cpp
atController.cpp
em_iptables_hook.cpp
em_iptables_hook.h
4da10dd08f12002c3821c5d4ceba302daae33e03 13-Jan-2012 David 'Digit' Turner <digit@google.com> Use <resolv_iface.h> instead of <resolv.h>

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
ndroid.mk
esolverController.cpp
5ea0c05a1e7d8e664b808aa1bb1efd08fdb2fb13 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I8ab66debe4d0c3857a4b80f6f7b6925a352cda87
andwidthController.cpp
ommandListener.cpp
atController.cpp
etlinkManager.cpp
anController.cpp
ppController.cpp
econdaryTableController.cpp
oftapController.cpp
etherController.cpp
hrottleController.cpp
ogwrapper.c
ain.cpp
0e76b761a1514d5182675dd7b7d33725f62d6bc5 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: Ic9a12b3bc322d1fa60de50725b5ca18341d64b91
ommandListener.cpp
nsProxyListener.cpp
etlinkHandler.cpp
08b58b60fd70e81317a9df19cc431f0759bc9e71 04-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: I61f544fc5b362863886cadceb37c9840e1d48e9b
ain.cpp
7b984e3f7e724f8a3547a707210319f3d479f261 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I85b946663d5a0e7606140282bf758c27b8c6f68f
ommandListener.cpp
nsProxyListener.cpp
anController.cpp
ppController.cpp
esolverController.cpp
oftapController.cpp
etherController.cpp
ain.cpp
8112c85001dae35f626cfacd22f274f2ce5ffa64 15-Dec-2011 The Android Open Source Project <initial-contribution@android.com> am b6331c31: Reconcile with ics-mr1-release

* commit 'b6331c31fede2d6a898892bdf9e9b34618da9756':
netd: fix argument interpretation bug
b6331c31fede2d6a898892bdf9e9b34618da9756 15-Dec-2011 The Android Open Source Project <initial-contribution@android.com> Reconcile with ics-mr1-release

Change-Id: I95c0b924756d815c89e70c088b6e8003a54226f8
8a12dd0851cc2aaa1f6ffb27e5d7616733200c36 15-Dec-2011 JP Abgrall <jpa@google.com> netd: fix argument interpretation bug

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
andwidthController.cpp
atController.cpp
econdaryTableController.cpp
hrottleController.cpp
ogwrapper.c
447dacddaccf9f4b723ca53346349bf2039527f5 15-Dec-2011 JP Abgrall <jpa@google.com> am 9e5e0ce6: netd: fix argument interpretation bug

* commit '9e5e0ce62e88ddf9a09798eda51b0c270d354c8e':
netd: fix argument interpretation bug
a1aa827827d254fbbe60e66476baf130e8dacd00 15-Dec-2011 JP Abgrall <jpa@google.com> am 9e5e0ce6: netd: fix argument interpretation bug

* commit '9e5e0ce62e88ddf9a09798eda51b0c270d354c8e':
netd: fix argument interpretation bug
9e5e0ce62e88ddf9a09798eda51b0c270d354c8e 15-Dec-2011 JP Abgrall <jpa@google.com> netd: fix argument interpretation bug

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
andwidthController.cpp
atController.cpp
econdaryTableController.cpp
hrottleController.cpp
ogwrapper.c
7c2ddd84ec501aaedb806a3ecec5de00d618a036 02-Dec-2011 Jeff Sharkey <jsharkey@android.com> Allow additional interface flags.

Bug: 5686458
Change-Id: I9c5147446636d32bb3a420a05199870cca5f013d
ommandListener.cpp
31ea0b03afeedd17f703b7a6d1e5c9feb2d6000d 30-Nov-2011 Jeff Sharkey <jsharkey@android.com> Remove square brackets from interface flags.

All trailing arguments are treated as now treated as flags, instead
of mixing argument formats.

Change-Id: Iab80ed47ce2c8a1e7bc0fc5a46d391638fe282c8
ommandListener.cpp
bae6aaf08c8b3c49d426f3d4ebdb1a0c2d78dd8e 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 063af322: Fix some syntax issues with IP command.

* commit '063af322b48ab1bb0c3e09eb0b64915ba568275b':
Fix some syntax issues with IP command.
df54b758cf673f28b60f91b813bc56af08e5f895 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 063af322: Fix some syntax issues with IP command.

* commit '063af322b48ab1bb0c3e09eb0b64915ba568275b':
Fix some syntax issues with IP command.
063af322b48ab1bb0c3e09eb0b64915ba568275b 19-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix some syntax issues with IP command.

Was not building secondary tables properly. Also IPv6 host routes
were failing.

bug:5615697
Change-Id: I0d5ad2ed7d13e4d5bd8c2f8ce15fc0ccb36a4690
atController.cpp
atController.h
econdaryTableController.cpp
econdaryTableController.h
a2a64f004f1677daf16b0b03d589d6572ec547c2 12-Nov-2011 JP Abgrall <jpa@google.com> netd: BandwidthController: return extra info on gettetherstats failure

Use the error message string to report the raw parsed data in case of
failure.

Bug:5543131
Change-Id: If9f3bcea09fd3ab8a506955d8153b3430bfd239c
andwidthController.cpp
andwidthController.h
ommandListener.cpp
29563474fd66b03d5bc5b11bc54cd4001e2327a7 05-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am fc97b82e: Start using IP tool for advanced routing.

* commit 'fc97b82e02979f246d56a4bfd60e4aab8686d3f6':
Start using IP tool for advanced routing.
2b6c87cf4ef17f7e21fd6f95f91a372f5ec1921f 04-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am fc97b82e: Start using IP tool for advanced routing.

* commit 'fc97b82e02979f246d56a4bfd60e4aab8686d3f6':
Start using IP tool for advanced routing.
fc97b82e02979f246d56a4bfd60e4aab8686d3f6 03-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Start using IP tool for advanced routing.

bug:5495862
bug:5396842
Change-Id: I51f21060947f57e63b18c4d35e9d49fac488d48a
ndroid.mk
ommandListener.cpp
ommandListener.h
atController.cpp
atController.h
econdaryTableController.cpp
econdaryTableController.h
47441ce12d8ac4e7f3c3fb1354a3ae50b802c2bd 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am f7bf29c8: When un-natting try to do all we can

* commit 'f7bf29c8a37d65e132a4dceb7c5a4200ed5c3d79':
When un-natting try to do all we can
05c15031c0ed1aee69b618528fa44f7a5aeee976 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am f7bf29c8: When un-natting try to do all we can

* commit 'f7bf29c8a37d65e132a4dceb7c5a4200ed5c3d79':
When un-natting try to do all we can
f7bf29c8a37d65e132a4dceb7c5a4200ed5c3d79 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> When un-natting try to do all we can

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
ommandListener.cpp
atController.cpp
674cadbf08fce044dea45d5b3f235f23a66a39bf 28-Oct-2011 Ed Heyl <ed@google.com> keep previous history after reset to mr1 plus aah changes (ics-aah-wip)
c7239a3dcb30b62dfba35b7df7b4d387e517aab2 26-Oct-2011 Ed Heyl <ed@google.com> undo reset to ics-mr1 until we have a better method
14ec1bbd5fc528bb2befa10f9e6bdf44d45d6e46 26-Oct-2011 Ed Heyl <ed@google.com> reset to ics-mr1, but keep history
068c39911794c8a334a4b241a06ffa9673b6a803 26-Oct-2011 Irfan Sheriff <isheriff@google.com> am 8c61917c: am 54b75b4e: Use CCMP for WPA2 mode

* commit '8c61917c11c3b32b37f174265060bb857683ee57':
Use CCMP for WPA2 mode
8c61917c11c3b32b37f174265060bb857683ee57 26-Oct-2011 Irfan Sheriff <isheriff@google.com> am 54b75b4e: Use CCMP for WPA2 mode

* commit '54b75b4e772ac77df141ab077be074bc1c098987':
Use CCMP for WPA2 mode
290fd652399fe9287c1e5c5d527c8712640b2af3 26-Oct-2011 Steve Block <steveblock@google.com> am 3fb42e02: (-s ours) Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE

* commit '3fb42e026ffebab2c8f282e42501040121e32d83':
Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
54b75b4e772ac77df141ab077be074bc1c098987 26-Oct-2011 Irfan Sheriff <isheriff@google.com> Use CCMP for WPA2 mode

TKIP+CCMP for WPA and the secure CCMP for WPA2

Bug:5515097
Change-Id: I877d1f4075c3df83149aca23b59c285d2fe093e1
oftapController.cpp
52646a5cd9f624512de942a5c0b4ff2f1c7b28f5 25-Oct-2011 Steve Block <steveblock@google.com> am bf91ebf2: (-s ours) Rename LOG() to ALOG() DO NOT MERGE

* commit 'bf91ebf2e205cca5660c1c9306cc10b4fac653e7':
Rename LOG() to ALOG() DO NOT MERGE
3fb42e026ffebab2c8f282e42501040121e32d83 20-Oct-2011 Steve Block <steveblock@google.com> Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: Iaf07eecf106fda89c464723661976f4570638558
andwidthController.cpp
ommandListener.cpp
bf91ebf2e205cca5660c1c9306cc10b4fac653e7 12-Oct-2011 Steve Block <steveblock@google.com> Rename LOG() to ALOG() DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/141576

Bug: 5449033
Change-Id: I049afb3bf14d5eb5c3cf8dc073113a4854f8ec06
ogwrapper.c
f8b92ffecd0cc4e898baa07225ca6d2f2ff17b41 08-Oct-2011 JP Abgrall <jpa@google.com> am c6c67349: netd: bandwidth: tethering global alert support

* commit 'c6c673496184bed6d62cf92a6fc7ed43fd94acd5':
netd: bandwidth: tethering global alert support
c6c673496184bed6d62cf92a6fc7ed43fd94acd5 08-Oct-2011 JP Abgrall <jpa@google.com> netd: bandwidth: tethering global alert support

Now, when nat is enabled/disabled it will let the bandwidthcontroller
know that it might need to add/remove the matching global alert into
the tethering rules in the FORWARD chain of iptables.

Bug: 5336638
Change-Id: I1843f3f6601f371537f754a31db792e054b36a1d
andwidthController.cpp
andwidthController.h
ommandListener.cpp
a25bf2a4d3ef4722a7b5811f271b3811925eeafc 30-Sep-2011 repo sync <isheriff@google.com> am c1b38701: Add support to disable/enable ipv6

* commit 'c1b3870147acd0dd42e2e767df08b4d64d5d2423':
Add support to disable/enable ipv6
c1b3870147acd0dd42e2e767df08b4d64d5d2423 30-Sep-2011 repo sync <isheriff@google.com> Add support to disable/enable ipv6

Bug: 5388757
Change-Id: I0506254948477cbff05603faed625cc73d94d777
ommandListener.cpp
ommandListener.h
831e0250a4306252e23e02be9e823159cd85bd52 29-Sep-2011 Lorenzo Colitti <lorenzo@google.com> am 1ed47c4a: Move the code to delete IP addresses to ifc_utils.

* commit '1ed47c4a016e420a855ee46922e512150245ff61':
Move the code to delete IP addresses to ifc_utils.
1ed47c4a016e420a855ee46922e512150245ff61 27-Sep-2011 Lorenzo Colitti <lorenzo@google.com> Move the code to delete IP addresses to ifc_utils.

Change-Id: I04c8de503229d1dce6bd08c286b7017eaea11039
ommandListener.cpp
8d616d9aa8ed645d145301c707e14f0f315eb255 19-Sep-2011 JP Abgrall <jpa@google.com> am db7da58e: netd: BandwidthController: support reading out tethering stats

* commit 'db7da58e8d2aa021060098057f944ef754be06e3':
netd: BandwidthController: support reading out tethering stats
db7da58e8d2aa021060098057f944ef754be06e3 18-Sep-2011 JP Abgrall <jpa@google.com> netd: BandwidthController: support reading out tethering stats

* Add
ndc bandwidth gettetherstats <ifaceIn> <ifaceOut>
which returns
221 ifaceIn ifaceOut rx_bytes rx_packets tx_bytes tx_packets
If the iface pair is not found it will fail.

221 is the new response code for TetheringStatsResult.
It gets the stats by looking at the iptables FORWARD chain's counters.

* Fixed return handling after some of the responses.
- no need for errorno
- after ResponseCode >= 200, don't return another.

* Correctly initialize the alert values on "bandwidth enable"

Bug: 5244846,5230066
Change-Id: I81c941441525fa4055ae270d5cad05e6c42b8f72
andwidthController.cpp
andwidthController.h
ommandListener.cpp
ommandListener.h
esponseCode.h
7c38121543fe781c92d6a0267b46e02516e3d56b 15-Sep-2011 Irfan Sheriff <isheriff@google.com> am 65969062: Merge "Netd comand to change IPv6 privacy extensions"

* commit '65969062a94e3a2d15a2536db297492f96a1f0aa':
Netd comand to change IPv6 privacy extensions
65969062a94e3a2d15a2536db297492f96a1f0aa 15-Sep-2011 Irfan Sheriff <isheriff@google.com> Merge "Netd comand to change IPv6 privacy extensions"
32a9dc6f484deb3462d11084caca21e3f1f662b2 14-Sep-2011 Irfan Sheriff <isheriff@google.com> Netd comand to change IPv6 privacy extensions

Bug: 3360737
Change-Id: Ifa13c425c6168acdd01600d49c1fb52288c60d3c
ommandListener.cpp
bfb1992f802db4d03cf25c1488a81f305b2883e7 14-Sep-2011 JP Abgrall <jpa@google.com> am 87666694: netd: BandwidthController: exclude loopback in all alert rules.

* commit '876666947664c718a8d0cae9bbddb06cc91f912c':
netd: BandwidthController: exclude loopback in all alert rules.
876666947664c718a8d0cae9bbddb06cc91f912c 08-Sep-2011 JP Abgrall <jpa@google.com> netd: BandwidthController: exclude loopback in all alert rules.

Have the alerts explicitly request "not loopback".

Change-Id: I7a569292e630c2b8ec76489643741f53ab85b84e
andwidthController.cpp
fee073210cbd534c3f2f86b982a51e1e580e08b6 06-Sep-2011 Irfan Sheriff <isheriff@google.com> am ab374f42: Avoid setting prefix length for 0.0.0.0 address

* commit 'ab374f426a0d1d8598f3eb4b0339440dcb313a1a':
Avoid setting prefix length for 0.0.0.0 address
ab374f426a0d1d8598f3eb4b0339440dcb313a1a 03-Sep-2011 Irfan Sheriff <isheriff@google.com> Avoid setting prefix length for 0.0.0.0 address

The ioctl to set netmask fails when the interface address is 0.0.0.0.
The kernel always keeps the netmask as 0 when the address is 0.0.0.0.
Avoid making a call to prefix length when address is 0.0.0.0

Bug: 5255172
Change-Id: Id32f7823b2230fb9ac7cd45b0df1951f11338112
ommandListener.cpp
3c41d8709f3829d460d6ef645974366beb07d2fd 18-Aug-2011 JP Abgrall <jpa@google.com> am 11b4e9b2: netd: all: use system() instead of logwrap() for now.

* commit '11b4e9b26fe7b878992162afb39f5a8acfd143ed':
netd: all: use system() instead of logwrap() for now.
11b4e9b26fe7b878992162afb39f5a8acfd143ed 12-Aug-2011 JP Abgrall <jpa@google.com> netd: all: use system() instead of logwrap() for now.

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: JP Abgrall <jpa@google.com>
andwidthController.cpp
andwidthController.h
atController.cpp
hrottleController.cpp
5d7a08f497c4ac74416a063a0b13eee44b9988cf 04-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> am 6ccebd08: am e98a5816: am 6e4d5db1: Fix two error-case unwinders.

* commit '6ccebd085f8df439447ffe6060206a0a5af8d448':
Fix two error-case unwinders.
6ccebd085f8df439447ffe6060206a0a5af8d448 04-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> am e98a5816: am 6e4d5db1: Fix two error-case unwinders.

* commit 'e98a581641a233fd048bf76f68650b627ef546e5':
Fix two error-case unwinders.
e98a581641a233fd048bf76f68650b627ef546e5 04-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> am 6e4d5db1: Fix two error-case unwinders.

* commit '6e4d5db1b11f808bb4bdcc8dd45a7158c6c88515':
Fix two error-case unwinders.
6e4d5db1b11f808bb4bdcc8dd45a7158c6c88515 04-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Fix two error-case unwinders.

Noticed by moto, I missed to calls to actually do the unwinding.

Change-Id: Ie4da4979a3ad0eedcb6d468fecdff6614b1819bd
atController.cpp
5a66a6f5bf601019d5f598be9dc585ba331088a0 02-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> am 49012139: am 69a5b777: am ddb9f6eb: Add DROP rule for INVALID packets.

* commit '49012139e14e5f9cc4e452716e8164c3e7cfd9de':
Add DROP rule for INVALID packets.
49012139e14e5f9cc4e452716e8164c3e7cfd9de 02-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> am 69a5b777: am ddb9f6eb: Add DROP rule for INVALID packets.

* commit '69a5b7777f67f6d5ad9dbd33758332c7b0104613':
Add DROP rule for INVALID packets.
69a5b7777f67f6d5ad9dbd33758332c7b0104613 02-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> am ddb9f6eb: Add DROP rule for INVALID packets.

* commit 'ddb9f6eb8d8c35f46c1e3da68f375b85903e85c9':
Add DROP rule for INVALID packets.
ddb9f6eb8d8c35f46c1e3da68f375b85903e85c9 02-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Add DROP rule for INVALID packets.

bug:5094583
Change-Id: Ib942c557e7f2694b6ee18cc6562df597165894ce
atController.cpp
3da1ee690754c004f23423f03ec3f46a0232b493 02-Aug-2011 Dmitry Shmidt <dimitrysh@google.com> am 802b7ca3: Merge "softap: Increase delay after driver start to 800 ms (from 400)"

* commit '802b7ca31e62785bf3e181368a2f213260f66cba':
softap: Increase delay after driver start to 800 ms (from 400)
802b7ca31e62785bf3e181368a2f213260f66cba 02-Aug-2011 Dmitry Shmidt <dimitrysh@google.com> Merge "softap: Increase delay after driver start to 800 ms (from 400)"
587d6232b604ee383d893362f37f9843f5ac2162 02-Aug-2011 Dmitry Shmidt <dimitrysh@google.com> softap: Increase delay after driver start to 800 ms (from 400)

Workaround to avoid __nl80211_set_channel() to fail

Change-Id: I710f18c66cff66413f7133d65b2adcf53d67a8e7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.h
910bd33df8afc97b8207ddff293f6ff99021fab4 30-Jul-2011 Wink Saville <wink@google.com> am 8093c1a0: (-s ours) am 51c1ce04: (-s ours) am 4309f87d: DO NOT MERGE: Update OEM iptable hooks and ip fwd

* commit '8093c1a0aa2eb1c82df07190a24dc224b9f9fd19':
DO NOT MERGE: Update OEM iptable hooks and ip fwd
8093c1a0aa2eb1c82df07190a24dc224b9f9fd19 30-Jul-2011 Wink Saville <wink@google.com> am 51c1ce04: (-s ours) am 4309f87d: DO NOT MERGE: Update OEM iptable hooks and ip fwd

* commit '51c1ce04e8b16f29aa8d9727e65263d8f590c543':
DO NOT MERGE: Update OEM iptable hooks and ip fwd
51c1ce04e8b16f29aa8d9727e65263d8f590c543 30-Jul-2011 Wink Saville <wink@google.com> am 4309f87d: DO NOT MERGE: Update OEM iptable hooks and ip fwd

* commit '4309f87d5baa54a2741f35e0cb09959c55ff1ab6':
DO NOT MERGE: Update OEM iptable hooks and ip fwd
4309f87d5baa54a2741f35e0cb09959c55ff1ab6 30-Jul-2011 Wink Saville <wink@google.com> DO NOT MERGE: Update OEM iptable hooks and ip fwd

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
atController.cpp
atController.h
etherController.cpp
3bfe0b3cfcfbbf7f3078f53cd5cbc688d54bc34b 29-Jul-2011 JP Abgrall <jpa@google.com> am 6fcb8145: Merge "netd: NetlinkManager: don\'t fail if NETLINK_NFLOG socket is not there."

* commit '6fcb81453c7c759bbbfc5ec2f63205534e7c06e4':
netd: NetlinkManager: don't fail if NETLINK_NFLOG socket is not there.
6fcb81453c7c759bbbfc5ec2f63205534e7c06e4 29-Jul-2011 JP Abgrall <jpa@google.com> Merge "netd: NetlinkManager: don't fail if NETLINK_NFLOG socket is not there."
004e241b4a55aeebb9f9acceda1d26a35e1fba0b 27-Jul-2011 JP Abgrall <jpa@google.com> am afc5f95c: (-s ours) am 59da4baf: (-s ours) am b725a59f: Merge "DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables." into honeycomb-LTE

* commit 'afc5f95c6f18b2efd41b0d8c85377eb70fa396e9':
DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables.
afc5f95c6f18b2efd41b0d8c85377eb70fa396e9 27-Jul-2011 JP Abgrall <jpa@google.com> am 59da4baf: (-s ours) am b725a59f: Merge "DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables." into honeycomb-LTE

* commit '59da4baf881d7f5e2ae82bead547766cbf2c9710':
DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables.
1bb28f46f995a3768c2bb6aafb2fb2bdfb820d6c 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 7d8c2811: am a45de8a8: Add dns proxy controls from opensource.

* commit '7d8c2811e3604acfd6acfd2f7022919a633b394f':
Add dns proxy controls from opensource.
59da4baf881d7f5e2ae82bead547766cbf2c9710 27-Jul-2011 JP Abgrall <jpa@google.com> am b725a59f: Merge "DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables." into honeycomb-LTE

* commit 'b725a59f3e45de8fcd3c01c512c94ba665acb992':
DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables.
b725a59f3e45de8fcd3c01c512c94ba665acb992 27-Jul-2011 JP Abgrall <jpa@google.com> Merge "DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables." into honeycomb-LTE
8a41209c0188560a3b29c88fab7bd8a480c03892 27-Jul-2011 JP Abgrall <jpa@google.com> netd: NetlinkManager: don't fail if NETLINK_NFLOG socket is not there.

Some kernels used with ICS do not have the needed modules (quota2
with NFLOG support).
For those, we just don't allow NFLOG which will cripple quota alerts.
This is a temp workaround until kernels are prebuilts.


Change-Id: I403ba894aefb67996d791bd06055b8fec97d1407
Signed-off-by: JP Abgrall <jpa@google.com>
etlinkManager.cpp
7d8c2811e3604acfd6acfd2f7022919a633b394f 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am a45de8a8: Add dns proxy controls from opensource.

* commit 'a45de8a8d4def24fbcc21602400214b5ca7ffad1':
Add dns proxy controls from opensource.
d80e94ca116224bf52925a1503ced6f257cb88d6 23-Jun-2011 JP Abgrall <jpa@google.com> DO NOT MERGE: NatController: remove flushing the INPUT/OUTPUT tables.

DO NOT MERGE: cherry-pick from master, as oem's will be updating this
file in HC.

It doesn't use them, so it should not have to flush them.
This is a minimalistic attempt to cooperate with the BandwidthController.

Change-Id: Ia175a86403adf034ac6f44d7ebc4ebe941881368
atController.cpp
a45de8a8d4def24fbcc21602400214b5ca7ffad1 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Add dns proxy controls from opensource.

Port of change 22099 from the opensource.
bug:5060618

Change-Id: Ic99345881fcb30c6f1d5545a32401e6ada865d78
ndroid.mk
ommandListener.cpp
ommandListener.h
esolverController.cpp
esolverController.h
01e182f704b07d0763c0906ab3b706bcf6928896 25-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> wifi: Ensure that entropy file exists

Change-Id: Ib5ea7a6767a4ab7c4244bfc27248ee04340018a7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
ed4401d0ff90fbb9e43e506ef768439d1f81cae2 25-Jul-2011 JP Abgrall <jpa@google.com> Merge "netd: NetlinkManager: add support receiving quota2 log messages"
000aaef4483752c988ea236938e4c8e45b547f22 25-Jul-2011 JP Abgrall <jpa@google.com> Merge "netd: bandwidthcontroler: add support for alerts via iptables' quota2 log messages"
d2d157cae8d9bcf0e4f20e3624597c752e97c9bf 25-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> Merge "softap: Add P2P option to fwreload command"
54cf7fda69c3c442e7d2ac370a9c942fdb38dcd7 25-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> softap: Add P2P option to fwreload command

Change-Id: I6fced56a6baa71a1d1fefe35832a43879ed12501
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
78dcb76aff7d3b9458374832a79688d36901127f 23-Jul-2011 Irfan Sheriff <isheriff@google.com> Add config update support for hostapd

Additional fixes:

Fix putting hostapd in daemon mode which results in init taking it over
and failure to stop

Also fix security check

Bug: 5069108
Change-Id: Ie0e2f975516975d270e48c9081480d85e201251f
oftapController.cpp
oftapController.h
8ab120320313522050a34f45982942c08880350a 22-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> Merge "softap: Add hostapd support if BOARD_HOSTAPD_DRIVER is set"
e0ebc46c0aa38ce4f35bd3b60c0fcb9204d4c35e 22-Jul-2011 JP Abgrall <jpa@google.com> netd: NetlinkManager: add support receiving quota2 log messages

NetlinkManager, NetlinkHandler
. added support for netlink's NETLINK_NFLOG family used by the updated xt_quota2.
. it pushes the event all the wait to NetworkManagementService.java
"linit alert <alert_name> <iface_name>"

This needs:
- new kernel with quota2 changes that support logging via NETLINK's
NETLINK_NFLOG family.
- BandwidthController changes that setup the alerts.
- system core NetlinkEvent that recognizes the NFLOG messages.
- java land NetworkManagementService changes.

Change-Id: Id5b1026c6002803b5a1c0c7623cf7b1961de9802
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.cpp
etlinkManager.h
esponseCode.h
389f8d1550880f3bc67ade3e93f2ddb767e64092 22-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> softap: Add hostapd support if BOARD_HOSTAPD_DRIVER is set

Change-Id: Ic1d8e46edc351f8dd36f30abe957d536cf491164
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ndroid.mk
oftapController.cpp
8a93272255f1b7e3083a97e1e28ddf675c0c7fb0 14-Jul-2011 JP Abgrall <jpa@google.com> netd: bandwidthcontroler: add support for alerts via iptables' quota2 log messages

* Fix quota2 updating. The old insert-new/delete-old scheme doesn't work as the kernel
keeps the old counter assigned to the new rule.

* Add support for setting dummy quotas used only for alerts.

This needs:
- new kernel with quota2 changes that support logging via NETLINK's
NETLINK_NFLOG family.
- NetlinkManager support for receiving the events.
- java land handler for these new events.

* new commands
- add/remove a dummy quota to generate an alert after <bytes> are seen including loopback.
alerts are only triggered once.
. ndc bandwidth setglobalalert <bytes>
calling it multiple times, just re-arms the alert for the specified number of bytes.
Use "ndc bandwidth getiquota singleAlert" to get what is left.
. ndc bandwidth removeglobalalert
- add/remove alert on a shared quota (similar accounting as shared quota)
. ndc bandwidth setsharedalert <bytes>
Requires that a shared quota already exist.
. ndc bandwidth removesharedalert
Removing the last of the shared quotas will remove the matching alert.
- add/remove alert on an interface (similar accounting as interface quota)
. ndc bandwidth setinterfacealert <iface> <bytes>
Requires that a interface quota already exist.
. ndc bandwidth removeinterfacealert <iface>
Removing the interface quota will remove the matching alert.
- get the quotas and alert leftovers
. ndc bandwidth getquota
shared quota leftover
. ndc bandwidth getiquota <quota_name_or_iface>
iface specific quota leftover
Can be used to read-out alerts. E.g.
setglobalalert 12345 -> getiquota globalAlert
setsharedalert 12345 -> getiquota sharedAlert
setinterfacealert iface0 12345 -> getiquota iface0Alert

Change-Id: Iea9698b9d20e713281755dac32b4772a6cf0e84e
andwidthController.cpp
andwidthController.h
ommandListener.cpp
esponseCode.h
bfa7466b328101a8b04807f26e85c84526c9a774 30-Jun-2011 JP Abgrall <jpa@google.com> netd: bandwidthcontroller: use named quotas (via quota2)

Replace using the "quota" with "quota2".
Quota2 is SMP-safe, and allows sharing a quota between protocols.

Bug: 4646092
Change-Id: I69b1dd6d2c5c3b39cf0df175369ae5a28843d489
Signed-off-by: JP Abgrall <jpa@google.com>
andwidthController.cpp
fe15b63d9def3721bb0ee4d2fa36c6f4d0daf8aa 19-Jul-2011 Dmitry Shmidt <dimitrysh@google.com> Softap: Use wifi_get_fw_path() instead of predefined path

Change-Id: I75d01f2d5a07298e53638aea2431030ca07fd458
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ndroid.mk
oftapController.cpp
06e176e2a824c5f6515893d119dd10603f9fc40f 18-Jul-2011 The Android Open Source Project <initial-contribution@android.com> Reconcile with gingerbread-release

Change-Id: I7ecfd1052c530b417f300e91c7ee28d1920dce2b
9b2c66653577ebcd36076533c3a33e490a4bc55b 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove the simulator target from all makefiles.
Bug: 5010576

Change-Id: I1ef5377c66e08b450a4a40195b8fe29a8037a8be
ndroid.mk
4c2b66678b24ec6401e36b307db93df8c4022876 08-Jul-2011 android-merger <android-build@android.com> reset, and keep history
ffbf657f58a825b60cd98c05ff4d0e2706824f78 08-Jul-2011 The Android Open Source Project <initial-contribution@android.com> Reconcile with gingerbread-release

Change-Id: I5a9cde4afd6b2bc4a02eda27c9d919ebfd322d1d
d77a0c71b123c9971b6f4c9394fad5a67a42984d 07-Jul-2011 android-merger <android-build@android.com> Revert "netd: Enable the SO_PASSCRED socket option"

This reverts commit 79b579c92afc08ab12c0a5788d61f2dd2934836f.
etlinkManager.cpp
39f8f24246a5dac21be5cc5e32c0f395ee803766 30-Jun-2011 JP Abgrall <jpa@google.com> bandwidthcontroller: brute-force cleanup to catch costly_<iface> chains.

To help with development, where re-enable is used as a cleanup mechanism
we no remove ALL user chains.
Normally we only expect
costly, penalty_box, and costly_<iface>.
If in the future we have more chains outside of those, this will need
revisiting.

Change-Id: I45e504bc1fe4ad973c00308967a474c73e959666
andwidthController.cpp
a9f802c23f4c2c53fa1065b75f712ce46f384c3a 30-Jun-2011 JP Abgrall <jpa@google.com> netd: bandwidthcontroller: fix removeiquota. remove excessive LOGD.

When doing
ndc bandwidth setiquota rmnet0 1235
ndc bandwidth removeiquota rmnet0
the remove would not cleanup the costly_rmnet0 chain.

Bug: 4975613
Change-Id: Ie2a593de78613dcf6833165c45fef75adf57ee23
Signed-off-by: JP Abgrall <jpa@google.com>
andwidthController.cpp
79bad9b7a43bd31c8f76a3364e2c881adb7c0c8b 28-Jun-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am a0eece26: am 6b858eb3: Keep IP forwarding enabled in tools mode.

* commit 'a0eece268a7dbd837f73c80ad97cbea81abebf11':
Keep IP forwarding enabled in tools mode.
a0eece268a7dbd837f73c80ad97cbea81abebf11 28-Jun-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am 6b858eb3: Keep IP forwarding enabled in tools mode.

* commit '6b858eb3b9b94b19c5153311e10b6e832722fb8e':
Keep IP forwarding enabled in tools mode.
6b858eb3b9b94b19c5153311e10b6e832722fb8e 25-Jun-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Keep IP forwarding enabled in tools mode.

Do not disable IP forwarding after Tethering session is over
in tools mode so that modem logging tools are functional across
tethering sessions.

Change-Id: Id6eb91ded458c57822e6a96006778e11f4038d52
etherController.cpp
3d4363b4d84f66bba8153a2ac4afeac7ed064b5c 27-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "resolved conflicts for merge of 80adaddf to master"
3c8cc74f81d0f81204bd827076889bb51143dff8 27-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 80adaddf to master

Change-Id: I53c036b229352430c3faf57ce1d02fa889827690
40cd7e0fdbbc7463b6fb367c0d9bf95dec82a13e 27-Jun-2011 Mike J. Chen <mjchen@google.com> Merge changes Ie9674ca0,I8c0625a9

* changes:
Change string notification for link state change.
Revert "Revert "Add NETLINK_ROUTE socket creation and event propagation""
26e0d49fa743d7881104196a9eda733bd2aac92f 25-Jun-2011 JP Abgrall <jpa@google.com> netd: bandwidthcontroller: cleanup bool usage for readability.

replace stuff like:
f(buff, true, false) -> f(buff, ActionA, CaseD)

Change-Id: I8ff1d84f077d8f57263ecb7937b3f2caca86284b
andwidthController.cpp
andwidthController.h
0dad7c2f1f6994fbe5e85b9e1fc72d29d6453211 24-Jun-2011 JP Abgrall <jpa@google.com> BandwidthController: cleanup ipv4/v6, set/remove multiple quotas.

Regroup the ipv4/ipv6 choice deeper down to avoid copypasted code.
Shared quota accross ifaces.
Single quota per ifaces.

Nothing preventing an iface from have a single and shared quota.
Might be close to having a working combination.

Added commands:
- shared quota
ndc bandwidth setquotas <quotaBytes> <iface> ...
ndc bandwidth setquota <iface> <quotaBytes>
ndc bandwidth removequota <iface>
ndc bandwidth removequotas <iface> ...

- quota per iface
ndc bandwidth setiquota <iface> <quotaBytes>
ndc bandwidth removeiquota <iface>

Change-Id: I370d223da3c8b6e16e8d0a455309ae9e0756a721
andwidthController.cpp
andwidthController.h
ommandListener.cpp
a583f8be6126d3116311e96c6fd8bafcbaf2b431 24-Jun-2011 Mike J. Chen <mjchen@google.com> Change string notification for link state change.

Changed from linkstatus to linkstate to be more like the
notification function name.

Change-Id: Ie9674ca04bf9a9bdff2583786c301452d02b19fc
Signed-off-by: Mike J. Chen <mjchen@google.com>
etlinkHandler.cpp
564df4efc87f3d04c3570836d38134fd949c4caf 24-Jun-2011 Mike J. Chen <mjchen@google.com> Revert "Revert "Add NETLINK_ROUTE socket creation and event propagation""

This reverts commit 19fb0c4e5ec6a10473666a2d45267fbc8305ba85.

Conflicts:

NetlinkManager.cpp

Brings back Stan Chesnutt's change related to adding NETLINK_ROUTE
socket creation and event propagation.

Change-Id: I8c0625a95b7996ef75b883ce764c3244dd553a47
Signed-off-by: Mike J. Chen <mjchen@google.com>
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.cpp
etlinkManager.h
fa6f46d3370ae5475fc3bc8273bbe04ee7348d60 18-Jun-2011 JP Abgrall <jpa@google.com> netd:bandwidth: initial pass at app-rules, and some ipv6.

Adds initial per-app penalty box rules, and prepares for
handling per iface quota.

The following commands work:

* penalty box

ndc bandwidth addnaughtyapps <uid> ...
ndc bandwidth removenaughtyapps <uid> ...

* Shared quota

- add (updates the bytes, if they differ from last time)

ndc bandwidth setquota <iface> <bytes>
ndc bandwidth setquota <iface1> <bytes>
ndc bandwidth setquota <iface2> <bytes>

- remove
ndc bandwidth removequota <iface>
[ oldschool: ndc bandwidth setquota <iface> -1 ]

Change-Id: Ibefc16e81c7713feb47577a9687dcd032dedf06e
andwidthController.cpp
andwidthController.h
ommandListener.cpp
2ad297402daa97238e3fb099fe547e2c0b2cdc4b 23-Jun-2011 JP Abgrall <jpa@google.com> NatController: remove flushing the INPUT/OUTPUT tables.

It doesn't use them, so it should not have to flush them.
This is a minimalistic attempt to cooperate with the BandwidthController.

Change-Id: Ia175a86403adf034ac6f44d7ebc4ebe941881368
atController.cpp
80adaddfe0a997d7c9f45fafbd6f8b05e14d119c 23-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am d41806cb: Merge "Add ResolverController class"

* commit 'd41806cb55874d0eaf82fe11ffc62cf50a227313':
Add ResolverController class
d41806cb55874d0eaf82fe11ffc62cf50a227313 23-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Add ResolverController class"
786d1122d6a0a7b4bf16fdafe3b710759acc5094 31-May-2011 Mike Lockwood <lockwood@android.com> Remove obsolete support for controlling RNDIS USB networking

Change-Id: I1a49dc2c96998e9a44729b4b0303dbe9eb8c6569
Signed-off-by: Mike Lockwood <lockwood@android.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
sbController.cpp
sbController.h
e734edd35d8d02da96330d77420650c044a12527 16-Jun-2011 Irfan Sheriff <isheriff@google.com> Add netd command to clean up IP addresses

Bug: 4676254
Change-Id: Ifb0b573750504f5daeb8db038d13dddd553797de
ommandListener.cpp
4a5f5ca3c9e07fc3e6feca2afde07f41a8a64f11 16-Jun-2011 JP Abgrall <jpa@google.com> system/netd: bandwidth management initial support (uid+tag stats)

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
ndroid.mk
andwidthController.cpp
andwidthController.h
ommandListener.cpp
ommandListener.h
4d0342ec22cc5ef0edc27033e2dcdacbb31d47f3 03-Jun-2011 John Michelau <john.michelau@motorola.com> am 0b0383be: am ac208608: Do not wipe all netd iptables rules in test mode

* commit '0b0383befa6843ad32c3ff30da3e91a0c0a8f9c7':
Do not wipe all netd iptables rules in test mode
0b0383befa6843ad32c3ff30da3e91a0c0a8f9c7 28-May-2011 John Michelau <john.michelau@motorola.com> am ac208608: Do not wipe all netd iptables rules in test mode

* commit 'ac208608c9e10ef199fdd11c38a31675ee9290c0':
Do not wipe all netd iptables rules in test mode
ac208608c9e10ef199fdd11c38a31675ee9290c0 28-May-2011 John Michelau <john.michelau@motorola.com> Do not wipe all netd iptables rules in test mode

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
atController.cpp
f65f16552da0a10cc01e99b85b73d3f07188336f 20-May-2011 The Android Open Source Project <initial-contribution@android.com> Reconcile with gingerbread-release

Change-Id: Ibac35b4865cd0c39eff053ad84bddab50a2d6d6e
2beda2d6ec8a5b36a1d36a104521b95845a3a955 19-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 442017ef: am e019b659: Add v4/v6 route add/remove to netd.

* commit '442017eff8f783a2ea86d73c2ee9d88aef175327':
Add v4/v6 route add/remove to netd.
442017eff8f783a2ea86d73c2ee9d88aef175327 19-May-2011 Robert Greenwalt <rgreenwalt@google.com> am e019b659: Add v4/v6 route add/remove to netd.

* commit 'e019b65925217bcc3ad9b662aa3125f0593057af':
Add v4/v6 route add/remove to netd.
4415a6992691845c86bbb7b8ac9bd4c620338daa 13-May-2011 The Android Automerger <android-build@android.com> merge in gingerbread-release history after reset to gingerbread
e019b65925217bcc3ad9b662aa3125f0593057af 10-May-2011 Robert Greenwalt <rgreenwalt@google.com> Add v4/v6 route add/remove to netd.

Now we can move this out of the framework.
Also adds v6 support and explicit route removal (rather than the big hammer of "remove all").

Change-Id: Ia7f1b12b2175c566c4906064796131a2f7e81466
ommandListener.cpp
111b24e1c64747b70e59bc4cc02fac81b11b7812 04-May-2011 Brian Carlstrom <bdc@google.com> am 38bfbace: resolved conflicts for merge of d1aed628 to honeycomb-plus-aosp

* commit '38bfbace16fa8dc7e69761e1f29586d0ef5ea90c':
DNS Proxy should not hang on addresses containing null bytes
38bfbace16fa8dc7e69761e1f29586d0ef5ea90c 04-May-2011 Brian Carlstrom <bdc@google.com> resolved conflicts for merge of d1aed628 to honeycomb-plus-aosp

Change-Id: I6a1ffad61d29c6d361272bdd55522f4bd5f0e2c5
d1aed628997033076580580db381eaee0a3d29df 03-May-2011 Brian Carlstrom <bdc@google.com> Merge "DNS Proxy should not hang on addresses containing null bytes"
dfc668ef05df9bb150c25590a1afb17fc3101e60 02-May-2011 Brian Carlstrom <bdc@google.com> am 1eef3e2f: (-s ours) am 1871a4f2: DNS Proxy should not hang on addresses containing null bytes DO NOT MERGE

* commit '1eef3e2f220e264984e1c9a94f3782a1350a3ff9':
DNS Proxy should not hang on addresses containing null bytes DO NOT MERGE
1eef3e2f220e264984e1c9a94f3782a1350a3ff9 30-Apr-2011 Brian Carlstrom <bdc@google.com> am 1871a4f2: DNS Proxy should not hang on addresses containing null bytes DO NOT MERGE

* commit '1871a4f2b20f5d2e52d67b6d91da4f8734455cd6':
DNS Proxy should not hang on addresses containing null bytes DO NOT MERGE
5c6d6af88f9db03493ef9926e0ceab30c8b132c9 30-Apr-2011 Brian Carlstrom <bdc@google.com> DNS Proxy should not hang on addresses containing null bytes

Two bugs here:

1.) The gethostbyaddr netd protocol was passing a binary address value
but the arguments are expected to be strings not containing
embedded nulls (or probably other special characters). This
happened reliably with IPv6 addresses which contained nulls. It
now expects an inet_ntop formatted address.

2.) Although the gethostbyaddr code detected something was wrong, it
wasn't doing any proper error handling, leaving clients hanging
waiting for a response. It now sends back an empty response so
that clients can continue.

A corresponding change will be necesssary in bionic for #1 for DNS
proxying to work, but given the fix for #2, the existing bionic code
will fall back to performing its own gethostbyaddr call.

Bug: 4344448
Change-Id: I2a55bb0cd0f1b0670f25c0c93554578bb20404e3
nsProxyListener.cpp
nsProxyListener.h
1871a4f2b20f5d2e52d67b6d91da4f8734455cd6 27-Apr-2011 Brian Carlstrom <bdc@google.com> DNS Proxy should not hang on addresses containing null bytes DO NOT MERGE

Two bugs here:

1.) The gethostbyaddr netd protocol was passing a binary address value
but the arguments are expected to be strings not containing
embedded nulls (or probably other special characters). This
happened reliably with IPv6 addresses which contained nulls. It
now expects an inet_ntop formatted address.

2.) Although the gethostbyaddr code detected something was wrong, it
wasn't doing any proper error handling, leaving clients hanging
waiting for a response. It now sends back an empty response so
that clients can continue.

A corresponding change will be necesssary in bionic for #1 for DNS
proxying to work, but given the fix for #2, the existing bionic code
will fall back to performing its own gethostbyaddr call.

Bug: 4344448
git cherry-pick -e 0475ae98cd8f45de815d67d1966edaf5997be9a9

Change-Id: I0b131032e06c16950b4e6810155529b57814c565
nsProxyListener.cpp
nsProxyListener.h
89c1e975f0c03997808d35c7be10b244c5309f9f 29-Apr-2011 Mattias Falk <mattias.falk@sonyericsson.com> Add ResolverController class

Added a ResolverController class that handles
the communication with the dns resolver in
netd.

Change-Id: I0f71bd516109fd942e68b3400666c7a859228372
ndroid.mk
ommandListener.cpp
ommandListener.h
esolverController.cpp
esolverController.h
0475ae98cd8f45de815d67d1966edaf5997be9a9 27-Apr-2011 Brian Carlstrom <bdc@google.com> DNS Proxy should not hang on addresses containing null bytes

Two bugs here:

1.) The gethostbyaddr netd protocol was passing a binary address value
but the arguments are expected to be strings not containing
embedded nulls (or probably other special characters). This
happened reliably with IPv6 addresses which contained nulls. It
now expects an inet_ntop formatted address.

2.) Although the gethostbyaddr code detected something was wrong, it
wasn't doing any proper error handling, leaving clients hanging
waiting for a response. It now sends back an empty response so
that clients can continue.

A corresponding change will be necesssary in bionic for #1 for DNS
proxying to work, but given the fix for #2, the existing bionic code
will fall back to performing its own gethostbyaddr call.

Bug: 4344448
Change-Id: I2d03bfec0093c67e8052717c0f499f8871bcfb85
nsProxyListener.cpp
nsProxyListener.h
14998b1aca89bb75f9e3d3bf080610a9cddce2dd 27-Apr-2011 Conley Owens <cco3@android.com> am 3a74e2f6: am c7d5ce4a: Ignore change "Set SO_PASSCRED on the uevent socket." in favor of change in internal change.

* commit '3a74e2f631209cf96c90b56e95c86d2bde1bb29e':
Set SO_PASSCRED on the uevent socket. (needed for change I393c21da)
3a74e2f631209cf96c90b56e95c86d2bde1bb29e 27-Apr-2011 Conley Owens <cco3@android.com> am c7d5ce4a: Ignore change "Set SO_PASSCRED on the uevent socket." in favor of change in internal change.

* commit 'c7d5ce4af83acc83c4d871ee57d118d7d9a81188':
Set SO_PASSCRED on the uevent socket. (needed for change I393c21da)
c7d5ce4af83acc83c4d871ee57d118d7d9a81188 27-Apr-2011 Conley Owens <cco3@android.com> Ignore change "Set SO_PASSCRED on the uevent socket." in favor of change
in internal change.

Change-Id: I9f78c5e0e7c3cb4714ce8f908d1478dadf027d97
93e79f10ff54f713106a7ae3ebc0baebba7c4de0 26-Apr-2011 Conley Owens <cco3@android.com> Merge "Set SO_PASSCRED on the uevent socket. (needed for change I393c21da)"
e6ab884a82964831ec075fa48d6935cc847e31b6 25-Apr-2011 Vernon Tang <vt@foilhead.net> Set SO_PASSCRED on the uevent socket. (needed for change I393c21da)

Change-Id: I11767da938f6e8fd9b3b604218c26c3c8b8da881
etlinkManager.cpp
8cd1bc2c5f2033e29d036210dfe5cb07666d0850 20-Apr-2011 Nick Kralevich <nnk@google.com> am adb408dc: am d5b10d36: netd: Enable the SO_PASSCRED socket option

* commit 'adb408dc79639b5377c58d306484bc388062d195':
netd: Enable the SO_PASSCRED socket option
adb408dc79639b5377c58d306484bc388062d195 20-Apr-2011 Nick Kralevich <nnk@google.com> am d5b10d36: netd: Enable the SO_PASSCRED socket option

* commit 'd5b10d3633c6717b46763edf1a50d3e29a007592':
netd: Enable the SO_PASSCRED socket option
d5b10d3633c6717b46763edf1a50d3e29a007592 19-Apr-2011 Nick Kralevich <nnk@google.com> netd: Enable the SO_PASSCRED socket option

Ensure that sender credentials are available when we
receive a netlink message.

This is a manual cherry-pick of
79b579c92afc08ab12c0a5788d61f2dd2934836f

Change-Id: Ia7e742c2ab2fd4149454364a8c20ab0b719196b4
etlinkManager.cpp
9642e016605c1faaf711bc80bb25f197ec270ff9 19-Apr-2011 Nick Kralevich <nnk@google.com> am ea52906e: am 97f5eec2: am 79b579c9: netd: Enable the SO_PASSCRED socket option

* commit 'ea52906efcdcead1b2c7a12e0d5fa16374c9892c':
netd: Enable the SO_PASSCRED socket option
ea52906efcdcead1b2c7a12e0d5fa16374c9892c 19-Apr-2011 Nick Kralevich <nnk@google.com> am 97f5eec2: am 79b579c9: netd: Enable the SO_PASSCRED socket option

* commit '97f5eec2ac9e78b8388be52be1ea95b4462537ee':
netd: Enable the SO_PASSCRED socket option
951528ad605f9d398f7e061241f45f7a3618d764 19-Apr-2011 Nick Kralevich <nnk@google.com> netd: Enable the SO_PASSCRED socket option

Ensure that sender credentials are available when we
receive a netlink message.

Change-Id: I8a352573c7e49d99b4f2fdb2e4ce9abe58d4fc49
etlinkManager.cpp
97f5eec2ac9e78b8388be52be1ea95b4462537ee 19-Apr-2011 Nick Kralevich <nnk@google.com> am 79b579c9: netd: Enable the SO_PASSCRED socket option

* commit '79b579c92afc08ab12c0a5788d61f2dd2934836f':
netd: Enable the SO_PASSCRED socket option
79b579c92afc08ab12c0a5788d61f2dd2934836f 19-Apr-2011 Nick Kralevich <nnk@google.com> netd: Enable the SO_PASSCRED socket option

Ensure that sender credentials are available when we
receive a netlink message.

Change-Id: I8a352573c7e49d99b4f2fdb2e4ce9abe58d4fc49
etlinkManager.cpp
34ffd85aed3838d53bd1136c751a7825de1940e0 17-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Reference count SocketClients.

Avoids a netd crash when the client closes its connection while
a DNS request is in-flight.

Depends on Icd7f5f03 in system/core.

Bug: 3438459
Change-Id: Ie6953196623b97ad2b90df951186fbfce84f8e4e
nsProxyListener.cpp
nsProxyListener.h
666fe255fa581965d2835bd581cd5a8959411067 08-Mar-2011 Dmitry Shmidt <dimitrysh@google.com> Softap: Add 'clients' command

Change-Id: I3694a0b2b570e0925b7f807f133e6fa5d95c3ac2
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ommandListener.cpp
oftapController.cpp
oftapController.h
a0c7ed2750c24550b086dfdebaf34f8fd45581c9 23-Feb-2011 David Turner <digit@android.com> am 0a60eb99: am 54a9575b: Merge "Add GetHostByAddrHandler to DnsProxyListener"

* commit '0a60eb99298e54a3fca719f6695b1d7347dc849a':
Add GetHostByAddrHandler to DnsProxyListener
0a60eb99298e54a3fca719f6695b1d7347dc849a 22-Feb-2011 David Turner <digit@android.com> am 54a9575b: Merge "Add GetHostByAddrHandler to DnsProxyListener"

* commit '54a9575bb7a83ef859ebf4fa2cd610e65b6e9db2':
Add GetHostByAddrHandler to DnsProxyListener
54a9575bb7a83ef859ebf4fa2cd610e65b6e9db2 17-Feb-2011 David Turner <digit@android.com> Merge "Add GetHostByAddrHandler to DnsProxyListener"
1dbd6cf148ea3fab57ec0644c336e94c78a488be 15-Feb-2011 Mattias Falk <mattias.falk@sonyericsson.com> Add GetHostByAddrHandler to DnsProxyListener

Added functionality to handle gethostbyaddr
in DnsProxyListener. The functionality is
used by getnameinfo. The patch is part of the
work to have one dns cache for all process in
the system.

Change-Id: Ia7609160d2bd1d3bbe2b79956bd208d137a8a9ee
nsProxyListener.cpp
nsProxyListener.h
1d93e170f13b221362ee268fdc94b25db06c21c9 01-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Stop using netmask in the framework.

Use prefixlength instead.
bug:2542681

Change-Id: I4cc0d9a84a5b043da7f8cb19a42cc6aaae3f9584
ommandListener.cpp
5c140d71edf861f8c6c47dc9a18c3b54aac7dea1 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 0787d3c9: am 2446b68f: Merge "Fix the DNS proxy again, for reals."

* commit '0787d3c93bd52d8799bc1fbc4848e56d669337f7':
Fix the DNS proxy again, for reals.
d18375235c62480b70ec9f271c9ef93c2e2c6014 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 8cee7841: am 41efab55: Merge "Fix DNS proxy."

* commit '8cee7841d6aec9868dc94961e42277e332376f12':
Fix DNS proxy.
2c028218ea56c5fcf6f5afe34b01861be4006d71 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am e2e04304: am b9cab4ff: (-s ours) Merge "DNS proxy thread in netd."

* commit 'e2e043049e6c820a3ba03f89737c083796e238dc':
DNS proxy thread in netd.
0787d3c93bd52d8799bc1fbc4848e56d669337f7 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 2446b68f: Merge "Fix the DNS proxy again, for reals."

* commit '2446b68f8c0d72972f8f6ec7fa972d05a29c9f02':
Fix the DNS proxy again, for reals.
8cee7841d6aec9868dc94961e42277e332376f12 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 41efab55: Merge "Fix DNS proxy."

* commit '41efab55c8ca0344d5d68d0a3ab5b1b43f905e3b':
Fix DNS proxy.
e2e043049e6c820a3ba03f89737c083796e238dc 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am b9cab4ff: (-s ours) Merge "DNS proxy thread in netd."

* commit 'b9cab4ff6f6d6581574157662878d4c3fa28185e':
DNS proxy thread in netd.
2446b68f8c0d72972f8f6ec7fa972d05a29c9f02 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "Fix the DNS proxy again, for reals."
41efab55c8ca0344d5d68d0a3ab5b1b43f905e3b 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "Fix DNS proxy."
b9cab4ff6f6d6581574157662878d4c3fa28185e 26-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "DNS proxy thread in netd."
19fb0c4e5ec6a10473666a2d45267fbc8305ba85 09-Jan-2011 Wink Saville <wink@google.com> Revert "Add NETLINK_ROUTE socket creation and event propagation"

This reverts commit f6a7ad814dca2f67907eaed2cc0609c684850969.
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.cpp
etlinkManager.h
df9a6a82700a14169cc9d0b74833f1e261b171c6 02-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Fix the DNS proxy again, for reals.

me == the suck this morning

Bug: 3157030
Change-Id: Ib87ed047cd6999ee3d29b392acc7a559d9bb7349
nsProxyListener.cpp
89b99f2375271f2020dbb41ae96afd8c17b8e11a 02-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Fix DNS proxy.

Don't assume writing 0 bytes to SocketClient will be successful. (as
implemented in libsysutils right now, it returns an error...)

Bug: 3157030
Change-Id: I2b2cb8700cbf69be6dffa2e51d1c876c40675b9b
nsProxyListener.cpp
4e248e5a7a542067fd3f0467680eef2f92b1e195 27-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> 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
ndroid.mk
nsProxyListener.cpp
nsProxyListener.h
ain.cpp
f6a7ad814dca2f67907eaed2cc0609c684850969 05-Jan-2011 Stan Chesnutt <chesnutt@google.com> Add NETLINK_ROUTE socket creation and event propagation

Change-Id: I8cc8788661640600bceadeba8169e239bba98dec
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.cpp
etlinkManager.h
ff2c0d8c13457e43f0d4bf06d3177271aac104c1 17-Nov-2010 Olivier Bailly <olivier@google.com> Add missing include headers for compilation on x86 targets.

Change-Id: I99f7b79bfb5b6305a0772f418a54ace50cac1bbe
ommandListener.cpp
nsProxyListener.cpp
atController.cpp
etlinkHandler.cpp
anController.cpp
ppController.cpp
oftapController.cpp
etherController.cpp
hrottleController.cpp
sbController.cpp
40d0a52a74e2e915f4b595ba6c7afaa7c8e9626d 04-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am f444b341: Merge aaf2e765 from open-source master

* commit 'f444b341768afcdb3f0934c068f3ead6bafdab78':
Include <bluedroid/bluetooth.h> only if HAVE_BLUETOOTH is defined.
f444b341768afcdb3f0934c068f3ead6bafdab78 04-Nov-2010 Jean-Baptiste Queru <jbq@google.com> Merge aaf2e765 from open-source master

Change-Id: I523c3e7def1d8dc1c9fa9308143bee952e73eeb9
aaf2e7655bcc7374c3562d2daf76577d4c3ac54c 03-Nov-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Include <bluedroid/bluetooth.h> only if HAVE_BLUETOOTH is defined."
6c798fbf4e89c4058f046a65ee4f9aa5647e43e1 02-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Fix the DNS proxy again, for reals.

me == the suck this morning

Bug: 3157030
Change-Id: Ib87ed047cd6999ee3d29b392acc7a559d9bb7349
nsProxyListener.cpp
e6a3a58d6aa4b551e38e1e19fdfea2c0d2841b85 02-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Fix DNS proxy.

Don't assume writing 0 bytes to SocketClient will be successful. (as
implemented in libsysutils right now, it returns an error...)

Bug: 3157030
Change-Id: I2b2cb8700cbf69be6dffa2e51d1c876c40675b9b
nsProxyListener.cpp
007e987fee7e815e0c4bc820f434a632b7a69a9d 27-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> 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
ndroid.mk
nsProxyListener.cpp
nsProxyListener.h
ain.cpp
b5ff9b277f256df84caf3d798ccc83b4740a1d31 13-Oct-2010 Paul Eastham <eastham@google.com> Remove STOPSHIP comment

Change-Id: I2d42d6ddb16f88929b5edeeeb653feca8348e804
atController.cpp
fbd11c41aeb535723b78a61087fb436e64891055 12-Oct-2010 jmzhu <jmzhu@marvell.com> netd: softap: Add sub-ioctl command support

Change-Id: Ieb344fbb8853019e92a7385f7a190aa7451102dc
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
oftapController.h
56b6d45ebd9a9ae52ec5b75e7096cb02a23af1be 23-Sep-2010 Dmitry Shmidt <dimitrysh@google.com> Merge "softap: Incapsulate command call"
6665fb2adf78beddde21f7f3088a695646ca8c57 23-Sep-2010 Dmitry Shmidt <dimitrysh@google.com> softap: Incapsulate command call

Change-Id: I9c123252b3b5fa8649876e7e9138927d25dd1812
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
oftapController.h
e7732280e7af281d35f90d7794a31a7f6e10f185 20-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Use ptsname_r instead of ptsname in logwrapper.

Also other misc suggestions and fixes from Markus' review.

Bug: 3017876
Change-Id: I503f0340c2d75afb6850e36c1586f7f495638036
ogwrapper.c
faabd3d839d1503aa4ed82442fbff29ba0c70897 20-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Re-sync netd and vold's logwrapper.c forks.

Change-Id: Ie7ad47f0e9bfb862b92cd34070b79b6003549a16
ogwrapper.c
7826bd095a7ecfd642524cfd93a39a52986b73fc 17-Aug-2010 Rene Bolldorf <xsecute@googlemail.com> Include <bluedroid/bluetooth.h> only if HAVE_BLUETOOTH is defined.

Change-Id: Ie679cf8b382c4d0abafc0f81ab28fa0762ff179c
anController.cpp
a783390cc37cc8321fe695ba95ffaa5b6a2ed05b 14-May-2010 Nick Kralevich <nnk@google.com> Get rid of warnings when compiled with -Wformat-security

Change-Id: Iaed2edb7b43da5cb5cdd0bf641e45480633301fd
ogwrapper.c
6a5a63bd690b25d9c0b590f19169d6d3060f2330 30-Apr-2010 San Mehat <san@google.com> Merge "netd: Switch throttling to use HTB instead of CBQ" into froyo
9d8d728596234e1e49cb1f8267b190bcc2d4b685 30-Apr-2010 San Mehat <san@google.com> netd: Switch throttling to use HTB instead of CBQ

Change-Id: I5247c9b5264db374442d19d903a250413057f19d
Signed-off-by: San Mehat <san@google.com>
hrottleController.cpp
37dc4a51774b9c8a95205cb825eae6753170a851 29-Apr-2010 Robert Greenwalt <robdroid@android.com> Fix fd leaks

When you open a file, you should remember to close it.
bug:2639464

Change-Id: I90d25dba2a262b620373270832eb3189616c720d
etherController.cpp
sbController.cpp
ogwrapper.c
7421ff5c5f96a04837352d69ab8b0749855b4446 23-Apr-2010 Dmitry Shmidt <dimitrysh@google.com> Merge "softap: Add delay after driver start, return 0 if softap was started" into froyo
a165913421c5bed00a1f0b8e79e35e55b82aebbe 23-Apr-2010 Dmitry Shmidt <dimitrysh@google.com> softap: Add delay after driver start, return 0 if softap was started

Change-Id: I3e155cc7c118c21d5e66163bd678104d812465de
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
oftapController.h
651417c7c8662572de761c3b9260b1241ff21a79 23-Apr-2010 Robert Greenwalt <robdroid@android.com> 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
ommandListener.cpp
31c61c80a013bd1a050f0f4103e13fba62bf1717 14-Apr-2010 Robert Greenwalt <robdroid@android.com> 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
ommandListener.cpp
7e1f476ce965d9bde6e834bbe862faef548b2abb 10-Apr-2010 San Mehat <san@google.com> netd: Add ingress throttling

Change-Id: Id86a0d0d0bdfa9bca36e7c7bce7e9290c8532082
Signed-off-by: San Mehat <san@google.com>
hrottleController.cpp
a1992c9ff3e0d180c1f3042658ab9671d61a2fb8 08-Apr-2010 San Mehat <san@google.com> netd: Plumb interface throttling

Change-Id: I9092a37b3d5f2bfa4f49ddc473d0a5490abaae8f
Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ommandListener.cpp
hrottleController.cpp
hrottleController.h
ogwrapper.c
321efa7340e327b25b4ea4e49d86817070a301c9 03-Apr-2010 Robert Greenwalt <robdroid@android.com> Fix network byte-count reading.

Some networks iface names are too long to fit in a 6-char string.

bug:2561759
Change-Id: I571c9871db424d349bc47b4d15c6015a33be6f2a
ommandListener.cpp
8e46896b4c4be5deaef651a12b17314f63ae9070 01-Apr-2010 San Mehat <san@google.com> netd: Add skelaton support for throttling

Change-Id: I361f3c4ac30f7bb6efe4ed703405f0e843b075b4
Signed-off-by: San Mehat <san@google.com>
ommandListener.cpp
ommandListener.h
esponseCode.h
210b97745e14830cdb1f29ee1109e6e516f4e6f6 25-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix bug in NATing code.

Silly errors in refcount logic did the wrong thing.

Change-Id: I2cfc208615258397501450717cfcb7eb0386c9d4
atController.cpp
3208ea0b6cce28e7aef8459d548fd86df329e34f 25-Mar-2010 Robert Greenwalt <robdroid@android.com> Add support for multiple dhcp ranges.

We need multiple dhcp ranges to support dhcp on different interfaces.

bug:2533491
Change-Id: I3b568e81c048c6aff1a752ac4a81669034104413
ommandListener.cpp
etherController.cpp
etherController.h
1caafe66a6b927fa5d8eb4c59ec9eb48b0b1b075 24-Mar-2010 Robert Greenwalt <robdroid@android.com> 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
atController.cpp
atController.h
3df450af1c2e35d854768a508b6905c6794f7a74 18-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> softap: Add delay after startap, set and stopap calls

Change-Id: I9b34d610b3576764324efbf78bb55322d1067378
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
oftapController.h
a2d7e3e7d6e3f163f06e522378c6e2bd5cee28f8 15-Mar-2010 Kenny Root <kroot@google.com> netd: Use OpenSSL APIs for WPA-PSK calculation

Change-Id: Ibe2040a2ede58fcfad5b27cdb01a107fbf2c9f3d
ndroid.mk
oftapController.cpp
ha1.c
ha1.h
c3539e22bd7a59a12542b9ad961f7d7f0db9a8df 12-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> netd: softap: Add softap start / stop driver commands

Change-Id: I2081e4943b6b93109288e8d764ce25a55f3b6198
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ommandListener.cpp
oftapController.cpp
oftapController.h
9178b7390f9927aed57ae4a2da5b48991ed2aeea 12-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> netd: softap: Fix driver API for SoftAP

Change-Id: I5e17b2369d5ef34ea29b0c1b0df1d4977ff109ce
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
31fd6c5f3e9c39a13b028718dba5921a4300988c 12-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> netd: softap: Add FW reload processing

Change-Id: I731c2e390187c0fa5f69779cd25d8f2388ee511e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ndroid.mk
ommandListener.cpp
oftapController.cpp
oftapController.h
321f95a95cd41e0f58a72ca4f382d7e0a7f26d01 10-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> netd: softap: Add passphrase to hex conversion

Change-Id: Ia9b141cb436336deec6d94af701e6d807baa2f99
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ndroid.mk
oftapController.cpp
ha1.c
ha1.h
7977d67059ef94eefa9b14038df156b416fef877 09-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> netd: softap: Change "set" to use separate arguments

Change-Id: Id5f2adb41c671f2978fa3fe939b1a3b15a537165
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
oftapController.h
9da1a982e6c86fd8473138254aac73359a742bf5 09-Mar-2010 Jean-Baptiste Queru <jbq@google.com> Add an empty CleanSpec.mk

Change-Id: Ic22ebb3ef1b4f4a3b44fe1d7975bd851c1fc12bd
leanSpec.mk
c2f87fca30aedd08c468d6f25458769944697f10 04-Mar-2010 Irfan Sheriff <isheriff@google.com> Merge "softap: Add basic functionality directly through WEXT"
84c65a62fe7b053fed7f20274ca7379627a87b79 03-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> softap: Add basic functionality directly through WEXT

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
oftapController.cpp
oftapController.h
f15891b981b9a0ee5ab6c095b9a300bf224f2032 03-Mar-2010 Mike Lockwood <lockwood@android.com> Fix typo in UsbController::isRNDISStarted()

Signed-off-by: Mike Lockwood <lockwood@android.com>
sbController.cpp
e7b9422f0dc7a18041536c63efe74c7095496258 18-Feb-2010 Robert Greenwalt <robdroid@android.com> 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)
ommandListener.cpp
3e6ba3ce1abda6071d5b01f53ca6039bb7b5e2d3 18-Feb-2010 Robert Greenwalt <robdroid@android.com> Add enable/disable control of USB networking
ndroid.mk
ommandListener.cpp
ommandListener.h
sbController.cpp
sbController.h
dc22e651287f19675ec1b46a04b335c360ea74af 18-Feb-2010 Kenny Root <kroot@google.com> Merge "Check total string length of supplied DNS servers"
cf52faf90be32aab3d0c4736a95f26923227e475 18-Feb-2010 Kenny Root <kroot@google.com> 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
etherController.cpp
67c5753274ee828b56f96b5e9cdae64c8562ad52 18-Feb-2010 Robert Greenwalt <robdroid@android.com> 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.
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.cpp
esponseCode.h
5af38c360587ca2eef0badf6137ccf018f8cd4aa 10-Feb-2010 Dmitry Shmidt <dimitrysh@google.com> netd: Add Softap controller skeleton functions

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
esponseCode.h
oftapController.cpp
oftapController.h
73ea55b52895727635705f18629406c58ca2044c 05-Feb-2010 Robert Greenwalt <robdroid@android.com> Silence PPPDs noisy logs.
ppController.cpp
3c2e611a921029a81dd7ff9c6d505b0b5e740014 03-Feb-2010 San Mehat <san@google.com> netd: Don't print error on unknown Netlink event

Signed-off-by: San Mehat <san@google.com>
etlinkHandler.cpp
74d8fdd307275bfdf95dcf61d9e6366e87da24ec 01-Feb-2010 Robert Greenwalt <robdroid@android.com> 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
ommandListener.cpp
ppController.cpp
ppController.h
f1c368a83b738658d27720898b433bbc010123ba 28-Jan-2010 San Mehat <san@google.com> netd: Remove sigchild handler and fix a bluetooth makefile bug

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ain.cpp
01fed783828b592cda3b774deea4099a9e690e3d 23-Jan-2010 San Mehat <san@google.com> netd: Rename InterfaceGetInfoResult

Signed-off-by: San Mehat <san@google.com>
ommandListener.cpp
esponseCode.h
5c1b8af16dbbc20c89aaca2f93e725e12b16d055 22-Jan-2010 San Mehat <san@google.com> netd: Add Flush out enumerating/configuring interfaces

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
esponseCode.h
ain.cpp
0399710d9a7ee575104e7d76dc988afb7829ccb9 22-Jan-2010 San Mehat <san@google.com> netd: Don't break build if BT is not available for the target

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
anController.cpp
1bdac9e98c1ef37ba568b6cf23bfbc09cfe6bf15 21-Jan-2010 San Mehat <san@google.com> netd: Add preliminary support for BT PAN

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
anController.cpp
anController.h
esponseCode.h
1881762f345d011d079ee318d31f0a8d8ee5891e 21-Jan-2010 San Mehat <san@google.com> netd: Implement tty lists and tty validation

Signed-off-by: San Mehat <san@google.com>
ppController.cpp
ppController.h
18737845d3c6a60edd6f75ac441a1b3fed6d66a7 21-Jan-2010 San Mehat <san@google.com> netd: Wait when killing tethering services

Signed-off-by: San Mehat <san@google.com>
etherController.cpp
d5573d34c8fac49e16b20cf144486125bf940086 20-Jan-2010 San Mehat <san@google.com> netd: Add support for attaching/detaching PPP daemons

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
ppController.cpp
ppController.h
esponseCode.h
9ff78fb7da7158f5bd7c86d89a842691820259cf 19-Jan-2010 San Mehat <san@google.com> netd: Add primitive NAT control

Update: Add stub function to validate interface existance

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
atController.cpp
atController.h
9d10b341a0ba46f108cb96e46691197d778cbc06 18-Jan-2010 San Mehat <san@google.com> netd: Plumb in the tethering interfaces

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
esponseCode.h
etherController.cpp
etherController.h
dc.c
d18304287dbabc7835be771400b85d4ae8b63de6 15-Jan-2010 San Mehat <san@google.com> netd: Initial skelaton for netd

Signed-off-by: San Mehat <san@google.com>
ndroid.mk
ommandListener.cpp
ommandListener.h
etdCommand.cpp
etdCommand.h
etlinkHandler.cpp
etlinkHandler.h
etlinkManager.cpp
etlinkManager.h
esponseCode.h
ogwrapper.c
ain.cpp
dc.c
b79aa7a157b6b35a5944649d769fc092e5f6561c 13-Jan-2010 Nico Sallembien <nsallembien@google.com> new project, first commit