1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-11 18:15:34 +02:00

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 <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-03-17 10:57:41 +01:00
parent bb9fb9e2d1
commit cd14bff5ea
3 changed files with 36 additions and 17 deletions

View file

@ -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;
};