diff options
author | Neale Ranns <nranns@cisco.com> | 2020-02-24 13:32:30 +0000 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-03-17 14:04:02 +0000 |
commit | 3ec09e9243dceb78e7548725281b0da8eddf72b1 (patch) | |
tree | fb591d687ea796751b523bfd69cd96c127a9e75b /src/vnet/lisp-gpe/lisp_gpe_sub_interface.h | |
parent | 68449850783ed6a2570a864b2d12c79ff35c4072 (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-gpe/lisp_gpe_sub_interface.h')
-rw-r--r-- | src/vnet/lisp-gpe/lisp_gpe_sub_interface.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h b/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h index 457db93e910..7375bf00ccc 100644 --- a/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h +++ b/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h @@ -110,9 +110,9 @@ lisp_gpe_sub_interface_find_ip6 (const ip6_address_t * addr, u32 vni) lisp_gpe_sub_interface_key_t key; const uword *p; - key.local_rloc.ip.v6.as_u64[0] = addr->as_u64[0]; - key.local_rloc.ip.v6.as_u64[1] = addr->as_u64[1]; - key.local_rloc.version = AF_IP6; + ip_addr_v6 (&key.local_rloc).as_u64[0] = addr->as_u64[0]; + ip_addr_v6 (&key.local_rloc).as_u64[1] = addr->as_u64[1]; + ip_addr_version (&key.local_rloc) = AF_IP6; key.vni = vni; p = hash_get_mem (&lisp_gpe_sub_interfaces_sw_if_index, &key); @@ -134,7 +134,7 @@ lisp_gpe_sub_interface_find_ip4 (const ip4_address_t * addr, u32 vni) lisp_gpe_sub_interface_key_t key; const uword *p; - key.local_rloc.ip.v4.as_u32 = addr->as_u32; + ip_addr_v4 (&key.local_rloc).as_u32 = addr->as_u32; key.local_rloc.version = AF_IP4; key.vni = vni; |