Embedded TCP/IP stack  3.9.4
fnet_dhcp_options Struct Reference

DHCP options are retrieved from a DHCP server. More...

Data Fields

struct in_addr ip_address
 Client IP address assigned by the DHCP server (in network byte order). More...
 
struct in_addr netmask
 Subnet Mask (in network byte order). More...
 
struct in_addr gateway
 The IP address of a router on the client's subnet (in network byte order). More...
 
struct in_addr dhcp_server
 The DHCP server IP address (in network byte order). More...
 
fnet_uint32_t t1
 Renewal (T1) Time Value in seconds (in network byte order).
This option specifies the time interval from address assignment, until the client transitions to the RENEWING state.
A user application may ignore this option value. It is used for internal and debug purposes only. More...
 
fnet_uint32_t t2
 Rebinding (T2) Time Value in seconds (in network byte order).
This option specifies the time interval from address assignment until the client transitions to the REBINDING state.
A user application may ignore this option value. It is used for internal and debug purposes only. More...
 
fnet_uint32_t lease_time
 The IP Address Lease Time in seconds (in network byte order).
t1 < t2 < lease_time.
By default, t1=0.5*lease_time; t2=0.875*lease_time.
A user application may ignore this option value. It is used for internal and debug purposes only. More...
 

Detailed Description

DHCP options are retrieved from a DHCP server.

This structure is used by the fnet_dhcp_get_options() function.
User application should never assign retrieved IP parameters directly to network interface. The DHCP client service does it automatically.

Definition at line 133 of file fnet_dhcp.h.


The documentation for this struct was generated from the following file:

© 2005-2017 by Andrey Butok. http://fnet.sourceforge.net