...
dhcp-c.h/dhcp-c.c
Prototype
Code Block | ||
---|---|---|
| ||
void DHCPc_Stop (NET_IF_NBR if_nbr,
DHCPc_ERR *perr); |
Arguments
if_nbr
Interface number to stop the DHCP configuration and management.
...
Notes / Warnings
None.
Example Usage
Code Block | ||||
---|---|---|---|---|
| ||||
DHCPc_ERR err;
DHCPc_Stop(NET_IF_NBR_BASE_CFGD, &err);
if (err == DHCPc_ERR_NONE) {
printf("Interface DHCP management successfully stopped\n\r");
} else {
printf("Interface DHCP management NOT successfully stopped\n\r");
} |