summaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp_input.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-11-11 11:37:36 -0800
committerDave Barach <vpp@barachs.net>2022-11-29 23:51:59 +0000
commite1f2058b548fe478c6dbfd450c343912cebb9740 (patch)
tree784cf1d779aa83328460ecceac09fc08d93f8d4f /src/vnet/udp/udp_input.c
parentbf27ca8021f37a99c0d1a28e85013f3c37979ba0 (diff)
udp: refactor port allocation and sharing
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I4f7314ddf95d26f1939bd3772d29d011fb4cea47
Diffstat (limited to 'src/vnet/udp/udp_input.c')
-rw-r--r--src/vnet/udp/udp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index 1c1d9e8e645..cd709390940 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -123,8 +123,8 @@ udp_connection_accept (udp_connection_t * listener, session_dgram_hdr_t * hdr,
udp_connection_free (uc);
return 0;
}
- udp_connection_share_port (clib_net_to_host_u16
- (uc->c_lcl_port), uc->c_is_ip4);
+ transport_share_local_endpoint (TRANSPORT_PROTO_UDP, &uc->c_lcl_ip,
+ uc->c_lcl_port);
return uc;
}