summaryrefslogtreecommitdiff
path: root/include/dhcp.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-20 22:46:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-14 14:29:42 +0100
commitab84733e570b889324f2594685f7f5d33b3c39be (patch)
tree0a75d7c782667cefb892b8a86772875f62a879c9 /include/dhcp.h
parent946bc95a4de8247ea884a3932470344e59618c3a (diff)
downloadbarebox-ab84733e570b889324f2594685f7f5d33b3c39be.tar.gz
net: dhcp: Allow to specify network device
Instead of allowing to DHCP only on the "current" network device, allow to specify the desired network device. This is a first step to get rid of the concept of a "current" network device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/dhcp.h')
-rw-r--r--include/dhcp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dhcp.h b/include/dhcp.h
index 0796b30cf1..20a523250f 100644
--- a/include/dhcp.h
+++ b/include/dhcp.h
@@ -20,6 +20,8 @@ struct dhcp_req_param {
char *client_uuid;
};
-int dhcp(int retries, struct dhcp_req_param *param);
+struct eth_device;
+
+int dhcp(struct eth_device *edev, int retries, struct dhcp_req_param *param);
#endif