summaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-01-09 12:46:07 -0800
committerDave Barach <vpp@barachs.net>2023-01-10 18:25:32 +0000
commit9bc72ac8de6dcc74aa82fa6c3223e9f93b2dc3c2 (patch)
tree2ee71b1319f75224bd44f5cca4bed195ff444a69 /src/vnet/udp/udp.h
parenta9e266ea4a8d87eb9383a7fe936426380db9623b (diff)
udp: avoid listener cleanups with active opens
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ibff9f32e4fcaf0344207d8e43f3547180cbd4eef
Diffstat (limited to 'src/vnet/udp/udp.h')
-rw-r--r--src/vnet/udp/udp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/udp/udp.h b/src/vnet/udp/udp.h
index ab088bd6a70..3dc116ee4d7 100644
--- a/src/vnet/udp/udp.h
+++ b/src/vnet/udp/udp.h
@@ -147,6 +147,10 @@ typedef struct
udp_worker_t *wrk;
udp_connection_t *listener_pool;
+ /* Refcounts for ports consumed by udp transports to handle
+ * both passive and active opens using the same port */
+ u16 *transport_ports_refcnt[N_UDP_AF];
+
u16 default_mtu;
u16 msg_id_base;
u8 csum_offload;