diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-11-30 13:02:09 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-12-04 09:51:02 +0100 |
commit | f08ce92a134e83e7c36050f4482b140b937c8dbb (patch) | |
tree | cd0ab75fb606e95bac6dff4d747f2a4377941214 /tcp.h | |
parent | 16ae03260800b8044efa541edcf43d4fb83b740d (diff) | |
download | passt-f08ce92a134e83e7c36050f4482b140b937c8dbb.tar passt-f08ce92a134e83e7c36050f4482b140b937c8dbb.tar.gz passt-f08ce92a134e83e7c36050f4482b140b937c8dbb.tar.bz2 passt-f08ce92a134e83e7c36050f4482b140b937c8dbb.tar.lz passt-f08ce92a134e83e7c36050f4482b140b937c8dbb.tar.xz passt-f08ce92a134e83e7c36050f4482b140b937c8dbb.tar.zst passt-f08ce92a134e83e7c36050f4482b140b937c8dbb.zip |
flow, tcp: Move TCP connection table to unified flow table
We want to generalise "connection" tracking to things other than true TCP
connections. Continue implenenting this by renaming the TCP connection
table to the "flow table" and moving it to flow.c. The definitions are
split between flow.h and flow_table.h - we need this separation to avoid
circular dependencies: the definitions in flow.h will be needed by many
headers using the flow mechanism, but flow_table.h needs all those protocol
specific headers in order to define the full flow table entry.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.h')
-rw-r--r-- | tcp.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -8,9 +8,6 @@ #define TCP_TIMER_INTERVAL 1000 /* ms */ -#define TCP_CONN_INDEX_BITS 17 /* 128k - 1 */ -#define TCP_MAX_CONNS MAX_FROM_BITS(TCP_CONN_INDEX_BITS) - struct ctx; void tcp_timer_handler(struct ctx *c, union epoll_ref ref); @@ -56,7 +53,6 @@ union tcp_listen_epoll_ref { /** * struct tcp_ctx - Execution context for TCP routines * @hash_secret: 128-bit secret for hash functions, ISN and hash table - * @conn_count: Count of total connections in connection table * @port_to_tap: Ports bound host-side, packets to tap or spliced * @fwd_in: Port forwarding configuration for inbound packets * @fwd_out: Port forwarding configuration for outbound packets @@ -66,7 +62,6 @@ union tcp_listen_epoll_ref { */ struct tcp_ctx { uint64_t hash_secret[2]; - int conn_count; struct port_fwd fwd_in; struct port_fwd fwd_out; struct timespec timer_run; |