summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hicn-plugin/src/faces/ip/face_ip.c6
-rw-r--r--hicn-plugin/src/faces/ip/face_ip_node.c2
-rw-r--r--hicn-plugin/src/faces/udp/face_udp.c12
-rw-r--r--scripts/build-packages.sh4
4 files changed, 12 insertions, 12 deletions
diff --git a/hicn-plugin/src/faces/ip/face_ip.c b/hicn-plugin/src/faces/ip/face_ip.c
index d03ff8739..6e279583c 100644
--- a/hicn-plugin/src/faces/ip/face_ip.c
+++ b/hicn-plugin/src/faces/ip/face_ip.c
@@ -140,7 +140,7 @@ hicn_face_ip_add (const ip46_address_t * local_addr,
fib_prefix_t fib_pfx;
fib_node_index_t fib_entry_index;
fib_prefix_from_ip46_addr (remote_addr, &fib_pfx);
- fib_pfx.fp_len = 128;
+ fib_pfx.fp_len = ip46_address_is_ip4(remote_addr)? 32 : 128;
u32 fib_index = fib_table_find_or_create_and_lock (fib_pfx.fp_proto,
HICN_FIB_TABLE,
@@ -287,7 +287,7 @@ format_hicn_face_ip (u8 * s, va_list * args)
s = format (s, "%U", format_vnet_link, adj->ia_link);
vnet_sw_interface_t *sw_int =
- vnet_get_sw_interface_safe (vnm, face->shared.sw_if);
+ vnet_get_sw_interface_or_null (vnm, face->shared.sw_if);
if (sw_int != NULL)
s = format (s, " dev %U", format_vnet_sw_interface_name, vnm, sw_int);
@@ -309,7 +309,7 @@ format_hicn_face_ip (u8 * s, va_list * args)
format_ip46_address, &ip_face->remote_addr, IP46_TYPE_ANY);
vnet_sw_interface_t *sw_int =
- vnet_get_sw_interface_safe (vnm, face->shared.sw_if);
+ vnet_get_sw_interface_or_null (vnm, face->shared.sw_if);
if (sw_int != NULL)
s = format (s, " dev %U", format_vnet_sw_interface_name, vnm, sw_int);
diff --git a/hicn-plugin/src/faces/ip/face_ip_node.c b/hicn-plugin/src/faces/ip/face_ip_node.c
index 945895fa0..6592dc065 100644
--- a/hicn-plugin/src/faces/ip/face_ip_node.c
+++ b/hicn-plugin/src/faces/ip/face_ip_node.c
@@ -493,7 +493,7 @@ hicn_face_rewrite_interest (vlib_main_t * vm, vlib_buffer_t * b0,
fib_prefix_t fib_pfx;
fib_node_index_t fib_entry_index;
fib_prefix_from_ip46_addr (&ip_face->remote_addr, &fib_pfx);
- fib_pfx.fp_len = 128;
+ fib_pfx.fp_len = ip46_address_is_ip4(&ip_face->remote_addr)? 32 : 128;
u32 fib_index = fib_table_find_or_create_and_lock (fib_pfx.fp_proto,
HICN_FIB_TABLE,
diff --git a/hicn-plugin/src/faces/udp/face_udp.c b/hicn-plugin/src/faces/udp/face_udp.c
index 19a9d1e56..751065f82 100644
--- a/hicn-plugin/src/faces/udp/face_udp.c
+++ b/hicn-plugin/src/faces/udp/face_udp.c
@@ -145,7 +145,7 @@ hicn_face_udp_add (const ip46_address_t * local_addr,
fib_prefix_t fib_pfx;
fib_node_index_t fib_entry_index;
fib_prefix_from_ip46_addr (remote_addr, &fib_pfx);
- fib_pfx.fp_len = 32;
+ fib_pfx.fp_len = ip46_address_is_ip4(remote_addr)? 32 : 128;
u32 fib_index = fib_table_find_or_create_and_lock (fib_pfx.fp_proto,
HICN_FIB_TABLE,
@@ -211,7 +211,7 @@ hicn_face_udp_add (const ip46_address_t * local_addr,
fib_prefix_t fib_pfx;
fib_node_index_t fib_entry_index;
fib_prefix_from_ip46_addr (remote_addr, &fib_pfx);
- fib_pfx.fp_len = 128;
+ fib_pfx.fp_len = ip46_address_is_ip4(remote_addr)? 32 : 128;
u32 fib_index = fib_table_find_or_create_and_lock (fib_pfx.fp_proto,
HICN_FIB_TABLE,
@@ -352,7 +352,7 @@ format_hicn_face_udp (u8 * s, va_list * args)
s = format (s, "%U", format_vnet_link, adj->ia_link);
vnet_sw_interface_t *sw_int =
- vnet_get_sw_interface_safe (vnm, face->shared.sw_if);
+ vnet_get_sw_interface_or_null (vnm, face->shared.sw_if);
if (sw_int != NULL)
s = format (s, " dev %U", format_vnet_sw_interface_name, vnm,
sw_int);
@@ -372,7 +372,7 @@ format_hicn_face_udp (u8 * s, va_list * args)
s = format (s, "%U", format_vnet_link, adj->ia_link);
vnet_sw_interface_t *sw_int =
- vnet_get_sw_interface_safe (vnm, face->shared.sw_if);
+ vnet_get_sw_interface_or_null (vnm, face->shared.sw_if);
if (sw_int != NULL)
s = format (s, " dev %U", format_vnet_sw_interface_name, vnm,
sw_int);
@@ -395,7 +395,7 @@ format_hicn_face_udp (u8 * s, va_list * args)
clib_net_to_host_u16 (udp_face->hdrs.ip4.udp.dst_port));
vnet_sw_interface_t *sw_int =
- vnet_get_sw_interface_safe (vnm, face->shared.sw_if);
+ vnet_get_sw_interface_or_null (vnm, face->shared.sw_if);
if (sw_int != NULL)
s = format (s, " dev %U", format_vnet_sw_interface_name, vnm,
sw_int);
@@ -414,7 +414,7 @@ format_hicn_face_udp (u8 * s, va_list * args)
clib_net_to_host_u16 (udp_face->hdrs.ip6.udp.dst_port));
vnet_sw_interface_t *sw_int =
- vnet_get_sw_interface_safe (vnm, face->shared.sw_if);
+ vnet_get_sw_interface_or_null (vnm, face->shared.sw_if);
if (sw_int != NULL)
s = format (s, " dev %U", format_vnet_sw_interface_name, vnm,
sw_int);
diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh
index d1e491e3e..aeb356e20 100644
--- a/scripts/build-packages.sh
+++ b/scripts/build-packages.sh
@@ -24,8 +24,8 @@ PACKAGECLOUD_RELEASE_REPO_RPM="https://packagecloud.io/install/repositories/fdio
VPP_GIT_REPO="https://git.fd.io/vpp"
VPP_BRANCH="stable/1904"
-VPP_VERSION_DEB="19.04.1-release"
-VPP_VERSION_RPM="19.04.1-release.x86_64"
+VPP_VERSION_DEB="19.04.2-release"
+VPP_VERSION_RPM="19.04.2-release.x86_64"
BUILD_TOOLS_UBUNTU="build-essential doxygen"
LIBSSL_LIBEVENT_UBUNTU="libevent-dev libssl-dev"