Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

dhcp-c.h/dhcp-c.c

Prototype

Code Block
languagecpp
          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
languagecpp
linenumberstrue
          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");
          }