weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Data Fields
ipConf_t Struct Reference

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.

Detailed Description

The IP configuration.


Field Documentation

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 name server 2.

This is the IP address of the name server 2.
If just one DNS server is available / set this should be dnsAddr.

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

Flags for the field is valid / is set.

Bit 0 : This configuration (or part of it) was set by responses from a DHCP server (DHCP_MSK).
Bit 4 : name server 1 is set (DNS1_MSK)
Bit 5 : name server 2 is set (DNS2_MSK)
Bit 6 : time server 1 is set (NTP1_MSK)
Bit 7 : time server 2 is set (NTP2_MSK)


The documentation for this struct was generated from the following file: