AM243x MCU+ SDK  09.00.00
cb_inetaddr_t Struct Reference

Detailed Description

Network address encapsulation structure for IPv4 or IPv6 address This structure is used to encapsulation of address type such that the implementation does not need to have separate containers for IPv4 and IPv6 address. It now supports either AF_INET or AF_INET6 network addresses. This structure may not hold both address type at a given time. Dual-stack implementation must assume that IPv4 can be effective in parallel with IPv6 address, thus it is expected that the the implementation uses two instances of this structure/.

Data Fields

int family
 
union {
   CB_IN_ADDR_T   ip_inaddr
 
   CB_IN6_ADDR_T   ip6_inaddr
 
addr
 
unsigned short port
 

Field Documentation

◆ family

int cb_inetaddr_t::family

address family type

◆ ip_inaddr

CB_IN_ADDR_T cb_inetaddr_t::ip_inaddr

◆ ip6_inaddr

CB_IN6_ADDR_T cb_inetaddr_t::ip6_inaddr

◆ addr

union { ... } cb_inetaddr_t::addr

network address, hold either IPv4 or IPv6 address

◆ port

unsigned short cb_inetaddr_t::port

port number