DHCPc_Stop()

Stops the DHCP address configuration and management on the specified interface.

Files

dhcp-c.h/dhcp-c.c

Prototype

          void  DHCPc_Stop (NET_IF_NBR   if_nbr,
                            DHCPc_ERR   *perr);


Arguments

if_nbr

Interface number to stop the DHCP configuration and management.

perr

Pointer to variable that will receive the return error code from this function:

DHCPc_ERR_NONE
DHCPc_ERR_INIT_INCOMPLETE
DHCPc_ERR_IF_INFO_IF_NOT_USED
DHCPc_ERR_MSG_Q
DHCPc_OS_ERR_LOCK
DHCPc_ERR_COMM_NONE_AVAIL

Returned Values

None

Required Configuration

None.

Notes / Warnings

None.

Example Usage

          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");
          }