Data Fields | |
uip_ipaddr_t | defaultRouter |
The default router. | |
uip_ipaddr_t | dns2Addr |
The name server 2. | |
uip_ipaddr_t | dnsAddr |
The name server. | |
uip_ipaddr_t | ipAddr |
The IP address. | |
uint32_t | leaseTime |
Lease time in seconds. | |
uip_ipaddr_t | netMask |
The netmask. | |
uip_ipaddr_t | ntp2Addr |
The time server 2. | |
uip_ipaddr_t | ntpAddr |
The time server. | |
uint8_t | setFlags |
Flags for the field is valid / is set. | |
uint32_t | setTime |
Set time. |
The IP configuration.
The name server.
This is the IP address of the name server 1.
weAutSys and ref uip "uIP" dispense with having multiple DNS servers.
The time server.
This is the IP address of the NTP server 1 (if set).
The time server 2.
This is the IP address of the NTP server 2.
If just one NTP server is available / set this should be ntpAddr.
uint32_t leaseTime |
Lease time in seconds.
If bit 1 (DHCP_MSK) is set in setFlags (part of) this configuration was set by a DHCP server and this is the real lease time in seconds (normal byte order).
Otherwise this element might be used as the requested lease time.
uint32_t setTime |
Set time.
This is the run time (with seconds resolution) when this configuration was set. If bit 1 (DHCP_MSK) is set this is the time of the DHCP server's positive answer.
Rationale to use the run time instead of an absolute local time is a) the first one having no settings and gaps giving allways a correct "age" of the setting and b) the second one usually being set after the just set DHCP named one or two NTP servers and one of them gave the first correct absolute time.
uint8_t setFlags |