aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-01-15 02:32:07 +0000
committerDave Barach <openvpp@barachs.net>2020-01-16 15:17:58 +0000
commitff2fad1701d8274d602cc46f3f2323154d96dc9f (patch)
treef64fdf41034fb53c35b7348b2957ae3153d76b4d
parentde7fcacb35423d22960a84168ca40ef7c13b21a9 (diff)
udp: fix ipv6 listen port registration
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I7f2233eb9bf3d81a697f76ba985083cf1040e2e9
-rw-r--r--src/vnet/udp/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/udp/udp.c b/src/vnet/udp/udp.c
index c2d6830bd7f..7fceab09b30 100644
--- a/src/vnet/udp/udp.c
+++ b/src/vnet/udp/udp.c
@@ -113,7 +113,7 @@ udp_session_bind (u32 session_index, transport_endpoint_t * lcl)
node_index = lcl->is_ip4 ? udp4_input_node.index : udp6_input_node.index;
udp_register_dst_port (vm, clib_net_to_host_u16 (lcl->port), node_index,
- 1 /* is_ipv4 */ );
+ lcl->is_ip4);
return listener->c_c_index;
}