summaryrefslogtreecommitdiffstats
path: root/include/netutils/ifc.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Remove netcfg's unused options."Elliott Hughes2015-02-031-0/+1
| | | | | | This reverts commit f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81. Change-Id: Iede772f96ff9008277df433dcbb5f6603de65283
* Remove netcfg's unused options.Elliott Hughes2015-02-031-1/+0
| | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: Iaf499c06b09ffe5e0925339b9cd6e502f3234a86
* 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
* 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>
* 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
* 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>
* 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-091-0/+59
- 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