aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-cp/packets.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-11-12 17:16:47 +0000
committerNeale Ranns <nranns@cisco.com>2019-12-02 21:44:10 +0000
commitd6d0edbf055ecabdec289727cef08becd9aca9b8 (patch)
tree222c75c3290d59fc3146197563353b6a74ebf8c5 /src/vnet/lisp-cp/packets.c
parent77d760d708dcfe35aa805bd86381bc0bcb28f677 (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-cp/packets.c')
-rw-r--r--src/vnet/lisp-cp/packets.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/lisp-cp/packets.c b/src/vnet/lisp-cp/packets.c
index 5cb2cfa12c3..bbc3ad64572 100644
--- a/src/vnet/lisp-cp/packets.c
+++ b/src/vnet/lisp-cp/packets.c
@@ -115,11 +115,11 @@ udp_checksum (udp_header_t * uh, u32 udp_len, void *ih, u8 version)
{
switch (version)
{
- case IP4:
+ case AF_IP4:
return (udp_ip4_checksum (uh, udp_len,
((ip4_header_t *) ih)->src_address.as_u8,
((ip4_header_t *) ih)->dst_address.as_u8));
- case IP6:
+ case AF_IP6:
return (udp_ip6_checksum (ih, uh, udp_len));
default:
return ~0;
@@ -154,11 +154,11 @@ pkt_push_ip (vlib_main_t * vm, vlib_buffer_t * b, ip_address_t * src,
switch (ip_addr_version (src))
{
- case IP4:
+ case AF_IP4:
return vlib_buffer_push_ip4 (vm, b, &ip_addr_v4 (src),
&ip_addr_v4 (dst), proto, csum_offload);
break;
- case IP6:
+ case AF_IP6:
return vlib_buffer_push_ip6 (vm, b, &ip_addr_v6 (src),
&ip_addr_v6 (dst), proto);
break;