VxWorks Reference Manual : Libraries
dhcpcShow - DHCP run-time client information display routines
dhcpcShowInit( ) - initialize the DHCP show facility
dhcpcServerShow( ) - display current DHCP server
dhcpcTimersShow( ) - display current lease timers
dhcpcParamsShow( ) - display current lease parameters
This library provides routines that display various information related to the DHCP run-time client library such as the lease timers and responding server. The dhcpcShowInit( ) routine links the show facility into the VxWorks image. This happens automatically if INCLUDE_NET_SHOW and INCLUDE_DHCPC are defined at the time the image is built.
dhcpcLib.h
dhcpcShow, dhcpcLib, Network Programmer's Guide: Network Configuration Protocols
dhcpcShowInit( ) - initialize the DHCP show facility
void dhcpcShowInit (void)
This routine links the DHCP show facility into the VxWorks system image. It is called from usrNetwork.c automatically if INCLUDE_DHCP and INCLUDE_NET_SHOW are defined at the time the image is constructed.
dhcpcServerShow( ) - display current DHCP server
STATUS dhcpcServerShow ( void * pCookie /* identifier returned by dhcpcInit() */ )
This routine prints the IP address of the DHCP server that provided the parameters for the lease identified by pCookie. It has no effect if the indicated lease is not currently active.
OK, or ERROR if lease identifier unknown.
S_dhcpcLib_BAD_COOKIE
dhcpcTimersShow( ) - display current lease timers
STATUS dhcpcTimersShow ( void * pCookie /* identifier returned by dhcpcInit() */ )
This routine prints the time remaining with each of the DHCP lease timers for the lease identified by pCookie. It has no effect if the indicated lease is not currently active.
OK if show routine completes, or ERROR otherwise.
S_dhcpcLib_BAD_COOKIE
dhcpcParamsShow( ) - display current lease parameters
STATUS dhcpcParamsShow ( void * pCookie /* identifier returned by dhcpcInit() */ )
This routine prints all lease parameters for the lease identified by pCookie. It has no effect if the indicated lease is not currently active.
OK, or ERROR if lease identifier unknown.
S_dhcpcLib_BAD_COOKIE