aboutsummaryrefslogtreecommitdiffstats
path: root/netcfg
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2011-09-26 10:49:41 -0700
committerLorenzo Colitti <lorenzo@google.com>2011-09-28 17:12:13 -0700
commit47ddb515b7d59b29d83628c1b4e48642dc0e49ba (patch)
treef83ba9b3d9e329c43e3cfba6414ffb8af6a6ef3f /netcfg
parentb14bbf02980fdb87437c1054037fda09286be6a4 (diff)
downloadsystem_core-47ddb515b7d59b29d83628c1b4e48642dc0e49ba.tar.gz
system_core-47ddb515b7d59b29d83628c1b4e48642dc0e49ba.tar.bz2
system_core-47ddb515b7d59b29d83628c1b4e48642dc0e49ba.zip
Support adding, deleting, and clearing IPv6 addrs.
- 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
Diffstat (limited to 'netcfg')
-rw-r--r--netcfg/netcfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/netcfg/netcfg.c b/netcfg/netcfg.c
index c5200751..3738f249 100644
--- a/netcfg/netcfg.c
+++ b/netcfg/netcfg.c
@@ -50,8 +50,9 @@ void usage(void)
int dump_interface(const char *name)
{
- unsigned addr, prefixLength, flags;
+ unsigned addr, flags;
unsigned char hwbuf[ETH_ALEN];
+ int prefixLength;
if(ifc_get_info(name, &addr, &prefixLength, &flags)) {
return 0;