diff options
author | Neale Ranns <nranns@cisco.com> | 2019-11-12 17:16:47 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-12-02 21:44:10 +0000 |
commit | d6d0edbf055ecabdec289727cef08becd9aca9b8 (patch) | |
tree | 222c75c3290d59fc3146197563353b6a74ebf8c5 /src/vnet/lisp-gpe/lisp_gpe_sub_interface.h | |
parent | 77d760d708dcfe35aa805bd86381bc0bcb28f677 (diff) |
ip: IP address and prefix types (moved from LISP)
Type: refactor
Change-Id: I2c6b59013bfd21136a2955442c779685f951932b
Signed-off-by: Neale Ranns <nranns@cisco.com>
(cherry picked from commit ea93e48cf6e918937422638cb574964b88a146b6)
Diffstat (limited to 'src/vnet/lisp-gpe/lisp_gpe_sub_interface.h')
-rw-r--r-- | src/vnet/lisp-gpe/lisp_gpe_sub_interface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h b/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h index 1abb314fbb3..457db93e910 100644 --- a/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h +++ b/src/vnet/lisp-gpe/lisp_gpe_sub_interface.h @@ -112,7 +112,7 @@ lisp_gpe_sub_interface_find_ip6 (const ip6_address_t * addr, u32 vni) 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 = IP6; + key.local_rloc.version = AF_IP6; key.vni = vni; p = hash_get_mem (&lisp_gpe_sub_interfaces_sw_if_index, &key); @@ -135,7 +135,7 @@ lisp_gpe_sub_interface_find_ip4 (const ip4_address_t * addr, u32 vni) const uword *p; key.local_rloc.ip.v4.as_u32 = addr->as_u32; - key.local_rloc.version = IP4; + key.local_rloc.version = AF_IP4; key.vni = vni; p = hash_get_mem (&lisp_gpe_sub_interfaces_sw_if_index, &key); |