From 6d4dbd4f29d6789cf4ea799d0b2eb9d489fa339d Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Mon, 18 Nov 2024 12:08:57 -0800 Subject: session: add auto sdl New CLI to enable/disable auto-sdl (requires session enable rt-backend sdl) auto-sdl [threshold ] [remove-timeout ] threshold is defined as the number of packets before the SDL entry is created to deny the source. remove-timeout is defined as the duration to remove the SDL entry which was created earlier. Type: feature Change-Id: I513094a59663970beae33257006c652674643764 Signed-off-by: Steven Luong --- src/vnet/tcp/tcp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/tcp/tcp.h') diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index 8676db413a0..8feac807d59 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -25,6 +25,7 @@ #include #include #include +#include typedef void (timer_expiration_handler) (tcp_connection_t * tc); @@ -265,6 +266,8 @@ typedef struct _tcp_main /** message ID base for API */ u16 msg_id_base; + + tcp_sdl_cb_fn_t sdl_cb; } tcp_main_t; extern tcp_main_t tcp_main; -- cgit