udp: track connection port sharing
Type: feature
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I822ed0596944a554595eb62a45841d216d1ab611
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index 453e123..4b22cbe 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -220,6 +220,8 @@
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;
}
}