summaryrefslogtreecommitdiffstats
path: root/include/nftables.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/nftables.h')
-rw-r--r--include/nftables.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/nftables.h b/include/nftables.h
index 1b368971..5c181be5 100644
--- a/include/nftables.h
+++ b/include/nftables.h
@@ -7,6 +7,13 @@
#include <utils.h>
#include <nftables/nftables.h>
+struct cookie {
+ char *buf;
+ size_t buflen;
+ size_t pos;
+ FILE *orig_fp;
+};
+
struct output_ctx {
unsigned int numeric;
unsigned int stateless;
@@ -15,6 +22,8 @@ struct output_ctx {
unsigned int echo;
FILE *output_fp;
FILE *error_fp;
+ struct cookie *output_cookie;
+ struct cookie *error_cookie;
};
struct nft_cache {