Network configuration structure. More...
Data Fields | |
uint8_t | cd_size |
Size of this structure. | |
char | cd_name [9] |
Magic cookie. | |
uint8_t | cdn_mac [6] |
Ethernet MAC address. | |
uint32_t | cdn_ip_addr |
Last used IP address. | |
uint32_t | cdn_ip_mask |
IP netmask. | |
uint32_t | cdn_gateway |
Default route. | |
uint32_t | cdn_cip_addr |
Configured IP address. |
Network configuration structure.
Network configuration type.
Applications may directly access the global variable confnet to read or modify the current network configuration.
Definition at line 108 of file confnet.h.
uint8_t CONFNET::cd_size |
char CONFNET::cd_name[9] |
uint8_t CONFNET::cdn_mac[6] |
uint32_t CONFNET::cdn_ip_addr |
Last used IP address.
Each time Nut/Net receives an IP address during boot, it will store the address in here.
If no fixed IP address has been configured (cdn_cip_addr contains 0.0.0.0) and if no DHCP server is available, then Nut/Net will use this one, if it is not 0.0.0.0.
uint32_t CONFNET::cdn_ip_mask |
uint32_t CONFNET::cdn_gateway |
uint32_t CONFNET::cdn_cip_addr |