From dee66271e7f84cb756dae31d154982d5b6bb9807 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Mon, 27 Apr 2020 12:52:23 +0200 Subject: [HICN-604] using host order port value to punt udp packet Signed-off-by: Alberto Compagno Change-Id: I9c135c76b881fecafe673517501d9539d2e30b2d --- hicn-plugin/src/faces/udp/face_udp.c | 4 ++-- 1 file 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 { -- cgit 1.2.3-korg