aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp_input.c
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-05-13 16:25:50 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-05-14 02:02:43 +0000
commit161638f14b967c9b11dee130c596f008c9e857c3 (patch)
tree9c969b7c2ed1b1646c8f986096fa6f20f7fc75a9 /src/vnet/udp/udp_input.c
parent07c0a9d0687a8f38b2863ada33836caf05399bac (diff)
Unregister UDPC port only when owned
Needed in QUIC, when cleaning up accepted UDP sessions Change-Id: Ifcb32687175562bed4ca69bdc519cedd4dc3c2bc Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/udp/udp_input.c')
-rw-r--r--src/vnet/udp/udp_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index e42f9fa754f..c6b9167aff6 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -207,6 +207,7 @@ udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
child0->c_rmt_port = udp0->src_port;
child0->c_is_ip4 = is_ip4;
child0->c_fib_index = tc0->fib_index;
+ child0->is_connected = 1;
if (session_stream_accept (&child0->connection,
tc0->s_index, 1))