summaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-cp/gid_dictionary.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-02-24 13:32:30 +0000
committerFlorin Coras <florin.coras@gmail.com>2020-03-17 14:04:02 +0000
commit3ec09e9243dceb78e7548725281b0da8eddf72b1 (patch)
treefb591d687ea796751b523bfd69cd96c127a9e75b /src/vnet/lisp-cp/gid_dictionary.c
parent68449850783ed6a2570a864b2d12c79ff35c4072 (diff)
ip: ip_address_t uses ip46_address_t
Type: improvement type re-use. Signed-off-by: Neale Ranns <nranns@cisco.com> Change-Id: Ic2a2e6babf9ae66a1e53aec53a6cd157e1893dc8
Diffstat (limited to 'src/vnet/lisp-cp/gid_dictionary.c')
-rw-r--r--src/vnet/lisp-cp/gid_dictionary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/lisp-cp/gid_dictionary.c b/src/vnet/lisp-cp/gid_dictionary.c
index c1b4adacf22..564ee8ea84d 100644
--- a/src/vnet/lisp-cp/gid_dictionary.c
+++ b/src/vnet/lisp-cp/gid_dictionary.c
@@ -346,13 +346,13 @@ make_arp_ndp_key (BVT (clib_bihash_kv) * kv, u32 bd, ip_address_t * addr)
kv->key[0] = ((u64) bd << 32) | (u32) ip_addr_version (addr);
if (ip_addr_version (addr) == AF_IP4)
{
- kv->key[1] = (u64) addr->ip.v4.as_u32;
+ kv->key[1] = (u64) ip_addr_v4 (addr).as_u32;
kv->key[2] = (u64) 0;
}
else
{
- kv->key[1] = (u64) addr->ip.v6.as_u64[0];
- kv->key[2] = (u64) addr->ip.v6.as_u64[1];
+ kv->key[1] = (u64) ip_addr_v6 (addr).as_u64[0];
+ kv->key[2] = (u64) ip_addr_v6 (addr).as_u64[1];
}
}