昇腾社区首页
中文
注册
开发者
下载

CommAddr

功能说明

通信设备地址描述结构体。

定义原型

typedef struct {
    CommAddrType type;         /* 通信地址类别 */
    union {
        uint8_t raws[36];      /* 通用数据 */
        struct in_addr addr;   /* IPv4地址结构 */
        struct in6_addr addr6; /* IPv6地址结构 */
        uint32_t id;           /* 标识 */
    };
} CommAddr;