From 9e5f41ed6ebe64a789916794626485460078c420 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Sat, 19 Jan 2019 01:29:33 +0100 Subject: - 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 --- lib/src/name.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib') 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); -- cgit 1.2.3-korg