summaryrefslogtreecommitdiffstats
path: root/include/netutils
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2013-01-09 16:22:12 -0800
committerRobert Greenwalt <rgreenwalt@google.com>2013-01-10 11:36:09 -0800
commitfdd573188d08fbd3739aeda19ef0f2d03752db9f (patch)
treeb779d66bbf125e440550839bc68330fd92b08d11 /include/netutils
parentd7c52a458e1c93b539ebd94f341f842d32d36937 (diff)
downloadsystem_core-fdd573188d08fbd3739aeda19ef0f2d03752db9f.zip
system_core-fdd573188d08fbd3739aeda19ef0f2d03752db9f.tar.gz
system_core-fdd573188d08fbd3739aeda19ef0f2d03752db9f.tar.bz2
Support 4 dns servers, up from 2
bug:5958524 Change-Id: I61c25e23d21e92653ec9b874d3d456a330d8fe05
Diffstat (limited to 'include/netutils')
-rw-r--r--include/netutils/dhcp.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/netutils/dhcp.h b/include/netutils/dhcp.h
index d25e58f..bd2c957 100644
--- a/include/netutils/dhcp.h
+++ b/include/netutils/dhcp.h
@@ -27,11 +27,18 @@ extern int dhcp_do_request(const char *ifname,
char *ipaddr,
char *gateway,
uint32_t *prefixLength,
- char *dns1,
- char *dns2,
+ char *dns[],
char *server,
uint32_t *lease,
char *vendorInfo);
+extern int dhcp_do_request_renew(const char *ifname,
+ char *ipaddr,
+ char *gateway,
+ uint32_t *prefixLength,
+ char *dns[],
+ char *server,
+ uint32_t *lease,
+ char *vendorInfo);
extern int dhcp_stop(const char *ifname);
extern int dhcp_release_lease(const char *ifname);
extern char *dhcp_get_errmsg();