Embedded TCP/IP stack
4.1.0
|
fnet_dhcp_srv.h
149 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);
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 ticks, seconds or milliseconds.
Definition: fnet_timer.h:66
fnet_netif_desc_t netif
Network interface descriptor to be used by the DHCP server.
Definition: fnet_dhcp_srv.h:53
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...
Definition: fnet_dhcp_srv.h:58
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 subnet_mask
Subnet mask. If it is set to INADDR_ANY, a subnet mask of the netif interface is used.
Definition: fnet_dhcp_srv.h:60
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
fnet_ip4_addr_t client_ip4_addr
Client IPv4 address allocated by the DHCPv4 server.
Definition: fnet_dhcp_srv.h:76
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_ip4_addr_t gateway
Gateway IPv4 address. If it is set to INADDR_ANY, a gateway address of the netif interface is used...
Definition: fnet_dhcp_srv.h:62
Initialization parameters for the fnet_dhcp_srv_init() function.
Definition: fnet_dhcp_srv.h:51
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_...
Definition: fnet_dhcp_srv.h:54
fnet_dhcp_srv_desc_t fnet_dhcp_srv_init(struct fnet_dhcp_srv_params *params)
Initializes the DHCPv4 server service.
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.
Definition: fnet_dhcp_srv.h:56
void fnet_dhcp_srv_release(fnet_dhcp_srv_desc_t desc)
Releases the DHCPv4 server service.
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net