DHCPC: Remove hard-coded interface device. Now passed as a parameter to dhcpc_open().

This commit is contained in:
Sebastien Lorquet
2017-05-19 14:34:00 -06:00
committed by Gregory Nutt
parent 395c191b43
commit ea1025ead2
10 changed files with 26 additions and 33 deletions

View File

@@ -1063,7 +1063,7 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
/* Set up the DHCPC modules */
handle = dhcpc_open(&mac, IFHWADDRLEN);
handle = dhcpc_open("eth0", &mac, IFHWADDRLEN);
/* Get an IP address. Note that there is no logic for renewing the IP
* address in this example. The address should be renewed in