25 #ifndef _FNET_DHCP_SRV_H_ 27 #define _FNET_DHCP_SRV_H_ 29 #if FNET_CFG_DHCP_SRV || defined(__DOXYGEN__) 86 #if defined(__cplusplus) 189 #if defined(__cplusplus) fnet_time_t lease_time
Lease time (in seconds).
fnet_bool_t fnet_dhcp_srv_get_addr_pool_info(fnet_dhcp_srv_desc_t desc, fnet_index_t n, fnet_dhcp_srv_addr_pool_info_t *addr_info)
Retrieves an address pool information.
fnet_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be seconds or milliseconds.
fnet_uint32_t lease_time
Default lease time in seconds. If it is set to 0, the FNET_CFG_DHCP_SRV_LEASE_TIME value is used...
fnet_netif_desc_t netif
Network interface descriptor to be used by the DHCP server.
fnet_ip4_addr_t subnet_mask
Subnet mask. If it is set to INADDR_ANY, a subnet mask of the netif interface is used.
fnet_bool_t fnet_dhcp_srv_is_enabled(fnet_dhcp_srv_desc_t desc)
Detects if the DHCP server service is enabled or disabled.
fnet_ip4_addr_t gateway
Gateway IPv4 address. If it is set to INADDR_ANY, a gateway address of the netif interface is used...
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Initialization parameters for the fnet_dhcp_srv_init() function.
Address pool information structure.
fnet_ip4_addr_t ip_addr_pool_start
The first allocated IPv4 address in the DHCPv4 server pool. The address pool size is defined by ip_...
fnet_ip4_addr_t client_ip4_addr
Client IPv4 address allocated by the DHCPv4 server.
fnet_dhcp_srv_desc_t fnet_dhcp_srv_get_by_netif(fnet_netif_desc_t netif)
Looks for a DHCP Server assigned to the specified network interface.
fnet_size_t ip_addr_pool_size
Size of the address pool. It may not be set a value more than FNET_CFG_DHCP_SRV_ADDR_POOL_SIZE. If it is set to 0, the FNET_CFG_DHCP_SRV_ADDR_POOL_SIZE value is used.
unsigned int fnet_index_t
Unsigned integer type representing the index.
fnet_uint32_t fnet_ip4_addr_t
32-bit IPv4 address type.
fnet_mac_addr_t client_mac_addr
Client-identifier (MAC address)
void * fnet_netif_desc_t
Network interface descriptor.
fnet_uint8_t fnet_mac_addr_t[6]
Media Access Control (MAC) address type.
void * fnet_dhcp_srv_desc_t
DHCPv4 server descriptor.
void fnet_dhcp_srv_release(fnet_dhcp_srv_desc_t desc)
Releases the DHCPv4 server service.
fnet_dhcp_srv_desc_t fnet_dhcp_srv_init(fnet_dhcp_srv_params_t *params)
Initializes the DHCPv4 server service.