summaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp_input.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-01 00:11:16 +0000
committerDave Barach <openvpp@barachs.net>2020-04-01 19:20:55 +0000
commita039620c2eec19a6c2e525645eeb0728a1c18c8d (patch)
tree7ff66fd434ca0ca9b7a747a50e122815a666bf5f /src/vnet/udp/udp_input.c
parent6eef40bce3f5ae2b06ba75d5b4cf32f168a801e4 (diff)
udp: track connection port sharing
Type: feature Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I822ed0596944a554595eb62a45841d216d1ab611
Diffstat (limited to 'src/vnet/udp/udp_input.c')
-rw-r--r--src/vnet/udp/udp_input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index 453e123f02e..4b22cbef54d 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -220,6 +220,8 @@ udp46_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
s0->session_state = SESSION_STATE_READY;
tc0 = &child0->connection;
uc0 = udp_get_connection_from_transport (tc0);
+ udp_connection_share_port (clib_net_to_host_u16
+ (uc0->c_lcl_port), uc0->c_is_ip4);
error0 = UDP_ERROR_LISTENER;
}
}