aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/udp/udp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/udp/udp.c b/src/vnet/udp/udp.c
index 7fceab09b30..34cebec93d2 100644
--- a/src/vnet/udp/udp.c
+++ b/src/vnet/udp/udp.c
@@ -86,7 +86,8 @@ udp_session_bind (u32 session_index, transport_endpoint_t * lcl)
void *iface_ip;
udp_dst_port_info_t *pi;
- pi = udp_get_dst_port_info (um, lcl->port, lcl->is_ip4);
+ pi =
+ udp_get_dst_port_info (um, clib_net_to_host_u16 (lcl->port), lcl->is_ip4);
if (pi)
return -1;