udp: track connection port sharing
[vpp.git] / src / vnet / udp / udp_input.c
index 453e123..4b22cbe 100644 (file)
@@ -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;
            }
        }