CommAddr

Function

Defines the description structure of the communication device address.

Prototype

constexpr uint32_t COMM_ADDR_EID_LEN = 16;
typedef struct {
    CommAddrType type;         /* Communication address type */
    union {
        uint8_t raws[36];      /* General data */
        struct in_addr addr;   /* IPv4 address structure */
        struct in6_addr addr6; /* IPv6 address structure */
        uint32_t id;           /* ID */
        uint8_t eid[COMM_ADDR_EID_LEN];  /* EID address type */
    };
} CommAddr;