diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-01-19 01:29:33 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-01-21 12:03:48 +0100 |
commit | 9e5f41ed6ebe64a789916794626485460078c420 (patch) | |
tree | d2ac3090026ec8929558e88eca533f8787a6ff0b /lib | |
parent | d13d37534d9449dd54277af664310d5f957dc44a (diff) |
- Code style fix
- Improved vpp binary api interface
- Correction in object pool destructor
- Fix error in Memif Connector
Change-Id: Id1dd9219fc1ac0b3717ae019ebff17373bebc635
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'lib')
-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); |