diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-04-27 12:52:23 +0200 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-04-27 12:52:23 +0200 |
commit | dee66271e7f84cb756dae31d154982d5b6bb9807 (patch) | |
tree | b9117114255f9c6189f840f40d0c2a5ec02dc1a7 | |
parent | 2e68bf4cbd4b3cdd40274a40ff03aee5909a412a (diff) |
[HICN-604] using host order port value to punt udp packet
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Change-Id: I9c135c76b881fecafe673517501d9539d2e30b2d
-rw-r--r-- | hicn-plugin/src/faces/udp/face_udp.c | 4 |
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 { |