From cd14bff5ea7c975a8064c8a13d4b1a7c8ebc529e Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 17 Mar 2021 10:57:41 +0100 Subject: tcp: Add struct for TCP execution context, move hash_secret to it We don't need to keep small data as static variables, move the only small variable we have so far to the new struct. Signed-off-by: Stefano Brivio --- passt.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'passt.h') diff --git a/passt.h b/passt.h index e2c9035..ff16134 100644 --- a/passt.h +++ b/passt.h @@ -1,5 +1,7 @@ #define UNIX_SOCK_PATH "/tmp/passt.socket" +#include "tcp.h" + /** * struct ctx - Execution context * @epollfd: file descriptor for epoll instance @@ -36,4 +38,6 @@ struct ctx { struct in6_addr dns6; char ifn[IF_NAMESIZE]; + + struct tcp_ctx tcp; }; -- cgit v1.2.3