summaryrefslogtreecommitdiffstats
path: root/include/netutils
Commit message (Collapse)AuthorAgeFilesLines
* Support resetting connections tied to any nonexistent address.Sreeram Ramachandran2014-09-081-0/+1
| | | | | Bug: 15414453 Change-Id: Ibf1f052e12b88838a328148e25817a96f10d50f5
* Put back some deleted code.Sreeram Ramachandran2014-07-231-0/+3
| | | | | | | | | http://ag/507249 removed a bunch of supposedly dead (unused) code. It turns out at least ifc_disable() is being used in some protected partner branches. Put back that as well as ifc_enable() to keep it symmetric. Bug: 15413389 Change-Id: Ibec83a66e5d9079876ccf36d250b95b7c0294c03
* Cleanup: Delete dead code.Sreeram Ramachandran2014-07-221-14/+0
| | | | | Bug: 15413389 Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
* libnetutils: Get mtu together with dhcp session resultsDmitry Shmidt2013-08-021-2/+6
| | | | | Change-Id: I517fd1f62d451b07466a21a2b770d9ce389dac19 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Support 4 dns servers, up from 2Robert Greenwalt2013-01-101-2/+9
| | | | | bug:5958524 Change-Id: I61c25e23d21e92653ec9b874d3d456a330d8fe05
* Merge remote-tracking branch 'goog/jb-dev-mako' into jb-mr1-devEd Heyl2012-07-281-0/+3
|\
| * Export flags needed for ifc_reset_connections API in netutilsAlex Yakavenka2012-06-211-0/+3
| | | | | | | | | | | | | | Code using ifc_reset_connections api needs to have access to predefined masks for reset_mask parameter Change-Id: I90bc5e1b62ae4a88501c8ad4e353c0d93d319579
* | netutils: Make visible prefixLengthToIpv4Netmask() functionDmitry Shmidt2012-07-231-0/+2
|/ | | | | Change-Id: I316b192ce753daa838ea44001f899ea508adf75c Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Pipe DHCP vendor info towards framework.Jeff Sharkey2012-04-191-1/+2
| | | | | Bug: 6344821 Change-Id: Iebce3e1b36175fc88f44e18db647c43b1245f18f
* Support adding, deleting, and clearing IPv6 addrs.Lorenzo Colitti2011-09-281-5/+10
| | | | | | | | | | | | | | | | - Provide a function to add and delete IPv4/IPv6 addresses using netlink. - Provide a function that clears all IP addresses on an interface that can be used by netd. Also, a couple of cleanups: - Update the header file to match reality, and include the header file in the implementation. Also fix a caller that has an incorrect method signature. - Fix whitespace in Android.mk. Change-Id: Ifba9d60cdfffb0b7e5c3b9c6ab328f5f77d259c4
* Add reset_mask as parameter to ifc_reset_connectionsWink Saville2011-07-071-1/+1
| | | | | | | | The reset_mask allows either IPv4 and or IPv6 connections of an interface to be reset. Bug: 4981919 Change-Id: Id2d9ab90e30091d3d0764c66d4b01b73c0edbfcc
* Stop using netmask in the frameworkRobert Greenwalt2011-02-021-2/+3
| | | | | | | This pushes prefixLength down as far as we can. bug:2542681 Change-Id: I94b7cde9d10e97ee2c071d92f25555cff5934f0b
* Merge "libnetutils: Clean all IPs assigned to the interface on cleaning"Dmitry Shmidt2011-01-271-0/+1
|\
| * libnetutils: Clean all IPs assigned to the interface on cleaningDmitry Shmidt2011-01-271-0/+1
| | | | | | | | | | Change-Id: Ic285bbb4b224fc4e62e88e76b8b448edbe814a17 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | Change our dhcp interface to be IPv6 compat.Robert Greenwalt2011-01-251-6/+6
|/ | | | | | | | Doesn't do IPv6, but removes v4-specific structures from the framework (netmask, ints for addrs) bug:2542681 Change-Id: I1110e6f32d42a472b104835a4298e18b391db0a7
* Add API to add a route to IPv4/IPv6 host/gateway.Banavathu, Srinivas Naik2010-08-171-0/+5
| | | | | | | Add API to create a route to an IPv4/IPv6 host/gateway through a particular interface. Change-Id: I0ab5d2d211e0fc05f65ee6bb202b7f435cccae2a
* - creates proper ifc.h and dhcp.h headers for libnetutilsSzymon Jakubczak2010-06-092-0/+99
- adds ifc_set_hwaddr - adds hwaddr command to netcfg - code reuse: dhcp_configure calls ifc_configure; inet_ntoa is used for printing - consistency: use net.XXX.dnsX properties in favor of dhcp.XXX.dnsX properties (see related change to WifiStateTracker) - updated system/core/nexus to use new headers, although not sure if anybody still uses nexus Change-Id: Idd70c0ac6e89b38e86816578c33eff805d30cac4