EtcPal  0.4.1
ETC Platform Abstraction Layer (EtcPal)
View other versions:

Overview

An IP address.

Can hold either an IPv4 or IPv6 address. Do not manipulate the members directly; use the macros defined in this module to access them. IPv4 addresses are in host byte order. IPv6 addresses also contain a scope ID, which is also sometimes referred to as a zone index (RFC 4007), to help disambiguate link-local addresses, among other uses. In most cases, this field can be left at its default value, which is set by the ETCPAL_IP_SET_V6_ADDRESS() macro.

Data Fields

etcpal_iptype_t type
 The IP address type (IPv4 or IPv6)
 
union {
   uint32_t   v4
 The IPv4 address value in host byte order.
 
   struct EtcPalIpv6Addr {
      uint8_t   addr_buf [ETCPAL_IPV6_BYTES]
 The IPv6 address.
 
      unsigned long   scope_id
 The IPv6 scope ID.
 
   }   v6
 
addr
 A union containing either the IPv4 or IPv6 address.
 

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