aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-11-30 13:02:09 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-12-04 09:51:02 +0100
commitf08ce92a134e83e7c36050f4482b140b937c8dbb (patch)
treecd0ab75fb606e95bac6dff4d747f2a4377941214 /passt.h
parent16ae03260800b8044efa541edcf43d4fb83b740d (diff)
downloadpasst-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 'passt.h')
-rw-r--r--passt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/passt.h b/passt.h
index cac720a..3f5dfb9 100644
--- a/passt.h
+++ b/passt.h
@@ -219,6 +219,7 @@ struct ip6_ctx {
* @pasta_conf_ns: Configure namespace after creating it
* @no_copy_routes: Don't copy all routes when configuring target namespace
* @no_copy_addrs: Don't copy all addresses when configuring namespace
+ * @flow_count: Number of tracked packet flows (connections etc.)
* @no_tcp: Disable TCP operation
* @tcp: Context for TCP protocol handler
* @no_tcp: Disable UDP operation
@@ -277,6 +278,8 @@ struct ctx {
int no_copy_routes;
int no_copy_addrs;
+ unsigned flow_count;
+
int no_tcp;
struct tcp_ctx tcp;
int no_udp;