diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-01-21 12:03:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-01-21 12:03:14 +0000 |
commit | 29fb58203e5a44dbfafc6b788f50ca412c5f3c4b (patch) | |
tree | 5d7cac00e1d824ae52999bb036610e6e75d199c2 /lib/src/name.h | |
parent | c7f942175b8c25c77ddc21561b52e3e6b5620b80 (diff) | |
parent | 9e5f41ed6ebe64a789916794626485460078c420 (diff) |
Merge "- Code style fix - Improved vpp binary api interface - Correction in object pool destructor - Fix error in Memif Connector"
Diffstat (limited to 'lib/src/name.h')
-rwxr-xr-x | lib/src/name.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/src/name.h b/lib/src/name.h index 0a55fedc6..ffcb4a451 100755 --- a/lib/src/name.h +++ b/lib/src/name.h @@ -48,7 +48,7 @@ #define IP_MAX_ADDR_LEN IPV6_ADDR_LEN #define TCP_SEQNO_LEN 4 /* bytes */ -typedef struct +struct ip_address { union { @@ -57,12 +57,13 @@ typedef struct u16 as_u16[IP_MAX_ADDR_LEN >> 1]; u32 as_u32[IP_MAX_ADDR_LEN >> 2]; u64 as_u64[IP_MAX_ADDR_LEN >> 3]; - ip4_address_t as_ip4; - ip6_address_t as_ip6; + ip46_address_t as_ip46; }; int family; unsigned short prefix_len; -} ip_address_t; +}; + +typedef struct ip_address ip_address_t; int ip_address_len (const ip_address_t * ip_address); bool ip_address_empty (const ip_address_t * ip_address); |