diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2011-09-29 09:04:23 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-09-29 09:04:23 -0700 |
commit | 15c8c3ebf060c57cb165322cd498958cf9112d8b (patch) | |
tree | 901fbceba2e46b677c5a845e937194f247979bc2 /include | |
parent | 2a32df25b8bb307693173911041458aaca84c84c (diff) | |
parent | 47ddb515b7d59b29d83628c1b4e48642dc0e49ba (diff) | |
download | core-15c8c3ebf060c57cb165322cd498958cf9112d8b.tar.gz core-15c8c3ebf060c57cb165322cd498958cf9112d8b.tar.bz2 core-15c8c3ebf060c57cb165322cd498958cf9112d8b.zip |
Merge "Support adding, deleting, and clearing IPv6 addrs."
Diffstat (limited to 'include')
-rw-r--r-- | include/netutils/ifc.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/netutils/ifc.h b/include/netutils/ifc.h index 575e72efc..67a4a4564 100644 --- a/include/netutils/ifc.h +++ b/include/netutils/ifc.h @@ -38,9 +38,13 @@ extern int ifc_reset_connections(const char *ifname, const int reset_mask); extern int ifc_get_addr(const char *name, in_addr_t *addr); extern int ifc_set_addr(const char *name, in_addr_t addr); -extern int ifc_get_prefixLength(const char *name, uint32_t *prefixLength); -extern int ifc_set_prefixLength(const char *name, uint32_t prefixLength); +extern int ifc_add_address(const char *name, const char *address, + int prefixlen); +extern int ifc_del_address(const char *name, const char *address, + int prefixlen); +extern int ifc_set_prefixLength(const char *name, int prefixLength); extern int ifc_set_hwaddr(const char *name, const void *ptr); +extern int ifc_clear_addresses(const char *name); /* This function is deprecated. Use ifc_add_route instead. */ extern int ifc_add_host_route(const char *name, in_addr_t addr); @@ -53,9 +57,10 @@ extern int ifc_create_default_route(const char *name, in_addr_t addr); extern int ifc_remove_default_route(const char *ifname); extern int ifc_add_route(const char *name, const char *addr, int prefix_length, const char *gw); - -extern int ifc_get_info(const char *name, in_addr_t *addr, in_addr_t *mask, - in_addr_t *flags); +extern int ifc_remove_route(const char *ifname, const char *dst, + int prefix_length, const char *gw); +extern int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, + unsigned *flags); extern int ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, |