Synopsis
typedef struct {
CTL_NET_IPv4_ADDR_t ip_addr;
CTL_NET_IPv4_ADDR_t subnet_mask;
CTL_NET_IPv4_ADDR_t gateway;
CTL_NET_IPv4_ADDR_t dns_primary_server;
CTL_NET_IPv4_ADDR_t dns_secondary_server;
unsigned char ttl;
} CTL_IP_CONFIG_t;
Description
CTL_IP_CONFIG_t contains the values needed to configure the IPv4 layer
of the network library. If DHCP is not used, the application code must
supply one of these structures to ctl_net_init during startup.
-
ip_addr
- Our IP address in network byte order.
-
subnet_mask
- Our subnet mask in network byte order.
-
gateway
- Local router (gateway) address in network byte order. This can be zero
if packets never leave the LAN.
-
dns_primary_server
- Primary DNS server IP address in network byte order.
This can be zero if DNS is not used.
-
dns_secondary_server
- Secondary DNS server IP address in network byte order.
This can be zero if DNS is not used or there is no secondary DNS server.
-
ttl
- Time to live for outgoing IP packets. Generally a ‘don't care’
for use on a LAN.
See Also
ctl_net_init