diff options
author | Damjan Marion <damarion@cisco.com> | 2017-04-03 14:56:08 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2017-04-04 21:40:27 +0200 |
commit | 615fc61d0937cda001c0ce1682e036e2bb112a74 (patch) | |
tree | 2644c611bdb2446301987c69061d5ce378de0403 /src/vnet/udp/udp.h | |
parent | fead670ae0a8323d8cd14e2cfad1fb8c25a48a99 (diff) |
Fix issue with udp port registration when running multithreaded
Change-Id: I16606757176649e61f0a51895329586311144766
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/udp/udp.h')
-rw-r--r-- | src/vnet/udp/udp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/udp/udp.h b/src/vnet/udp/udp.h index 7ab26ce96f0..bd163e273d2 100644 --- a/src/vnet/udp/udp.h +++ b/src/vnet/udp/udp.h @@ -146,6 +146,13 @@ typedef struct uword *dst_port_info_by_name[N_UDP_AF]; uword *dst_port_info_by_dst_port[N_UDP_AF]; + /* Sparse vector mapping udp dst_port in network byte order + to next index. */ + u16 *next_by_dst_port4; + u16 *next_by_dst_port6; + u8 punt_unknown4; + u8 punt_unknown6; + /* convenience */ vlib_main_t *vlib_main; } udp_main_t; |