Embedded TCP/IP stack
4.1.0
|
fnet_dhcp_cln.h
236 void fnet_dhcp_cln_get_options(fnet_dhcp_cln_desc_t desc, struct fnet_dhcp_cln_options *options );
249 typedef void(*fnet_dhcp_cln_callback_t)(fnet_dhcp_cln_desc_t desc, fnet_netif_desc_t netif, void *cookie);
270 void fnet_dhcp_cln_set_callback_updated (fnet_dhcp_cln_desc_t desc, fnet_dhcp_cln_callback_t callback_updated, void *cookie);
294 void fnet_dhcp_cln_set_callback_discover (fnet_dhcp_cln_desc_t desc, fnet_dhcp_cln_callback_t callback_discover, void *cookie);
void fnet_dhcp_cln_release(fnet_dhcp_cln_desc_t desc)
Releases the DHCPv4 client service.
Initialization parameters for the fnet_dhcp_cln_init() function.
Definition: fnet_dhcp_cln.h:110
void fnet_dhcp_cln_set_callback_discover(fnet_dhcp_cln_desc_t desc, fnet_dhcp_cln_callback_t callback_discover, void *cookie)
Registers the "Discover message sent" DHCP event handler callback.
fnet_uint32_t requested_lease_time
Suggested Lease time in seconds (in network byte order). The client can suggest to the DHCP server th...
Definition: fnet_dhcp_cln.h:118
fnet_uint32_t t2
Rebinding (T2) Time Value in seconds (in network byte order). This option specifies the time interval...
Definition: fnet_dhcp_cln.h:158
void fnet_dhcp_cln_set_callback_updated(fnet_dhcp_cln_desc_t desc, fnet_dhcp_cln_callback_t callback_updated, void *cookie)
Registers the "IP parameters updated" DHCP event handler callback.
fnet_bool_t fnet_dhcp_cln_is_enabled(fnet_dhcp_cln_desc_t desc)
Detects if the DHCP Client service is enabled or disabled.
fnet_uint32_t t1
Renewal (T1) Time Value in seconds (in network byte order). This option specifies the time interval f...
Definition: fnet_dhcp_cln.h:152
fnet_dhcp_cln_desc_t fnet_dhcp_cln_get_by_netif(fnet_netif_desc_t netif)
Looks for a DHCP Client assigned to the specified network interface.
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.
Definition: fnet_dhcp_cln.h:164
void fnet_dhcp_cln_get_options(fnet_dhcp_cln_desc_t desc, struct fnet_dhcp_cln_options *options)
Retrieves the current DHCPv4 client options retrieved from a DHCP server.
fnet_netif_desc_t netif
Network interface descriptor to be used by the DHCP client.
Definition: fnet_dhcp_cln.h:112
void(* fnet_dhcp_cln_callback_t)(fnet_dhcp_cln_desc_t desc, fnet_netif_desc_t netif, void *cookie)
DHCP client event handler callback function prototype, that is called when the DHCP client has update...
Definition: fnet_dhcp_cln.h:249
fnet_bool_t probe_addr
Probing of the newly received address with ARP:
Definition: fnet_dhcp_cln.h:123
fnet_dhcp_cln_desc_t fnet_dhcp_cln_init(struct fnet_dhcp_cln_params *params)
Initializes the DHCPv4 client service.
struct fnet_in_addr requested_ip_address
Suggested IPv4 address (in network byte order). The client can suggest to the DHCP server that a par...
Definition: fnet_dhcp_cln.h:113
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net