aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin')
-rw-r--r--hicn-plugin/src/faces/udp/face_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-plugin/src/faces/udp/face_udp.c b/hicn-plugin/src/faces/udp/face_udp.c
index 8abd2a047..f427505dd 100644
--- a/hicn-plugin/src/faces/udp/face_udp.c
+++ b/hicn-plugin/src/faces/udp/face_udp.c
@@ -196,7 +196,7 @@ hicn_face_udp_add (const ip46_address_t * local_addr,
dpo_proto = DPO_PROTO_IP4;
fib_table_unlock (fib_index, fib_pfx.fp_proto, FIB_SOURCE_PRIORITY_HI);
- udp_register_dst_port(vm, local_port, hicn_iface_udp4_input_node.index, 1);
+ udp_register_dst_port(vm, clib_net_to_host_u16(local_port), hicn_iface_udp4_input_node.index, 1);
}
else if (!ip46_address_is_ip4 (local_addr)
&& !ip46_address_is_ip4 (remote_addr))
@@ -253,7 +253,7 @@ hicn_face_udp_add (const ip46_address_t * local_addr,
dpo_proto = DPO_PROTO_IP6;
fib_table_unlock (fib_index, fib_pfx.fp_proto, FIB_SOURCE_PRIORITY_HI);
- udp_register_dst_port(vm, local_port, hicn_iface_udp6_input_node.index, 0);
+ udp_register_dst_port(vm, clib_net_to_host_u16(local_port), hicn_iface_udp6_input_node.index, 0);
}
else
{