diff options
| author | Jean-Baptiste Queru <jbq@google.com> | 2010-08-25 08:13:51 -0700 |
|---|---|---|
| committer | Jean-Baptiste Queru <jbq@google.com> | 2010-08-25 09:25:12 -0700 |
| commit | bdcf98ddbf2022ef894dfd7f9278e6f345e2c2df (patch) | |
| tree | 2f931ffeacfac57a4f15e25ce644ecdd55f2d162 /include | |
| parent | 8c85a00db6da092ec3766facd49132fa4fc319a1 (diff) | |
| parent | 8984bb9691f8d3e2665f7aae0896b9bd2ade0c19 (diff) | |
| download | system_core-bdcf98ddbf2022ef894dfd7f9278e6f345e2c2df.tar.gz system_core-bdcf98ddbf2022ef894dfd7f9278e6f345e2c2df.tar.bz2 system_core-bdcf98ddbf2022ef894dfd7f9278e6f345e2c2df.zip | |
Manual merge
Change-Id: Ic71ed9c392c5dee4a5a9be184d071eb688741f6f
Diffstat (limited to 'include')
| -rw-r--r-- | include/netutils/ifc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/netutils/ifc.h b/include/netutils/ifc.h index 2e502ab6..e2452629 100644 --- a/include/netutils/ifc.h +++ b/include/netutils/ifc.h @@ -40,12 +40,17 @@ extern int ifc_set_addr(const char *name, in_addr_t addr); extern int ifc_set_mask(const char *name, in_addr_t mask); extern int ifc_set_hwaddr(const char *name, const void *ptr); +/* This function is deprecated. Use ifc_add_route instead. */ extern int ifc_add_host_route(const char *name, in_addr_t addr); extern int ifc_remove_host_routes(const char *name); extern int ifc_get_default_route(const char *ifname); +/* This function is deprecated. Use ifc_add_route instead */ extern int ifc_set_default_route(const char *ifname, in_addr_t gateway); +/* This function is deprecated. Use ifc_add_route instead */ 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); |
