History log of /system/netd/CommandListener.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
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>
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
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
- CommandListener now invokes setupIptablesHooks() for each controller
once. That is the only time they are allowed to access the top-level

* 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
fc97b82e02979f246d56a4bfd60e4aab8686d3f6 03-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Start using IP tool for advanced routing.

Change-Id: I51f21060947f57e63b18c4d35e9d49fac488d48a
c1b3870147acd0dd42e2e767df08b4d64d5d2423 30-Sep-2011 repo sync <isheriff@google.com> Add support to disable/enable ipv6

Bug: 5388757
Change-Id: I0506254948477cbff05603faed625cc73d94d777
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
3c8cc74f81d0f81204bd827076889bb51143dff8 27-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 80adaddf to master

Change-Id: I53c036b229352430c3faf57ce1d02fa889827690
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>
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
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).

"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

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.

* make bandwidth controller cooperate with tethering.
- they both manipulate the iptables.

Change-Id: Ieb9e7c60ef8c974e99828f7833065d59b2922bf3
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

Change-Id: I0f71bd516109fd942e68b3400666c7a859228372
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>
3e6ba3ce1abda6071d5b01f53ca6039bb7b5e2d3 18-Feb-2010 Robert Greenwalt <robdroid@android.com> Add enable/disable control of USB networking
5af38c360587ca2eef0badf6137ccf018f8cd4aa 10-Feb-2010 Dmitry Shmidt <dimitrysh@google.com> netd: Add Softap controller skeleton functions

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
5c1b8af16dbbc20c89aaca2f93e725e12b16d055 22-Jan-2010 San Mehat <san@google.com> netd: Add Flush out enumerating/configuring interfaces

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

Signed-off-by: San Mehat <san@google.com>
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>
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>
9d10b341a0ba46f108cb96e46691197d778cbc06 18-Jan-2010 San Mehat <san@google.com> netd: Plumb in the tethering interfaces

Signed-off-by: San Mehat <san@google.com>
d18304287dbabc7835be771400b85d4ae8b63de6 15-Jan-2010 San Mehat <san@google.com> netd: Initial skelaton for netd

Signed-off-by: San Mehat <san@google.com>