aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-07-26 10:18:51 -0700
committerJohn Lo <loj@cisco.com>2019-07-26 20:54:17 +0000
commit1f42101f2708452301c62ff2e07eaaad3bbcd31a (patch)
treead5830af6da0caf136a2c42eca14b9be7c956e14 /src/vnet/tcp/tcp.h
parent559ee0f54c5a08c9975ed197b41081827b766485 (diff)
tcp: count resets sent
Type:feature Change-Id: Ie1ab4b24af9c654d5e0ed94b7fa96ca195b01c56 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp.h')
-rw-r--r--src/vnet/tcp/tcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h
index 8f2665d2a6a..698173ee28a 100644
--- a/src/vnet/tcp/tcp.h
+++ b/src/vnet/tcp/tcp.h
@@ -577,6 +577,9 @@ extern vlib_node_registration_t tcp6_rcv_process_node;
extern vlib_node_registration_t tcp4_listen_node;
extern vlib_node_registration_t tcp6_listen_node;
+#define tcp_node_index(node_id, is_ip4) \
+ ((is_ip4) ? tcp4_##node_id##_node.index : tcp6_##node_id##_node.index)
+
always_inline tcp_main_t *
vnet_get_tcp_main ()
{