diff options
author | Florin Coras <fcoras@cisco.com> | 2020-01-15 02:32:07 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-12 15:59:46 +0000 |
commit | 72c354dcd5b525c951c3139170786308a9226500 (patch) | |
tree | 2be36da3b1eb6dfa50a02a8b72ba1a0d1ce4c6fb | |
parent | 5d3e47cdd8bb13c79aa7948a5d17bd290b8fec0e (diff) |
udp: fix ipv6 listen port registration
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I7f2233eb9bf3d81a697f76ba985083cf1040e2e9
(cherry picked from commit ff2fad1701d8274d602cc46f3f2323154d96dc9f)
-rw-r--r-- | src/vnet/udp/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/udp/udp.c b/src/vnet/udp/udp.c index fbd9e980181..5998327a9ab 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; } |