summaryrefslogtreecommitdiffstats
path: root/include/internal
diff options
context:
space:
mode:
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/extern.h2
-rw-r--r--include/internal/object.h10
-rw-r--r--include/internal/prototypes.h2
-rw-r--r--include/internal/types.h1
4 files changed, 15 insertions, 0 deletions
diff --git a/include/internal/extern.h b/include/internal/extern.h
index 2a3ef06..fb9ca54 100644
--- a/include/internal/extern.h
+++ b/include/internal/extern.h
@@ -13,6 +13,8 @@ extern const get_exp_attr get_exp_attr_array[];
extern const uint32_t attr_grp_bitmask[ATTR_GRP_MAX][__NFCT_BITSET];
+extern const set_filter_dump_attr set_filter_dump_attr_array[];
+
/* for the snprintf infrastructure */
extern const char *const l3proto2str[AF_MAX];
extern const char *const proto2str[IPPROTO_MAX];
diff --git a/include/internal/object.h b/include/internal/object.h
index 94433bf..55fa4f5 100644
--- a/include/internal/object.h
+++ b/include/internal/object.h
@@ -261,6 +261,16 @@ struct nfct_filter {
};
/*
+ * conntrack filter dump object
+ */
+
+struct nfct_filter_dump {
+ struct nfct_filter_dump_mark mark;
+ u_int8_t l3num;
+ u_int32_t set;
+};
+
+/*
* expectation object
*/
diff --git a/include/internal/prototypes.h b/include/internal/prototypes.h
index 532c60e..730eb6b 100644
--- a/include/internal/prototypes.h
+++ b/include/internal/prototypes.h
@@ -37,6 +37,8 @@ void __copy_fast(struct nf_conntrack *ct1, const struct nf_conntrack *ct);
int __setup_netlink_socket_filter(int fd, struct nfct_filter *filter);
+void __build_filter_dump(struct nfnlhdr *req, size_t size, const struct nfct_filter_dump *filter_dump);
+
/*
* expectation internal prototypes
*/
diff --git a/include/internal/types.h b/include/internal/types.h
index 433de5b..3459200 100644
--- a/include/internal/types.h
+++ b/include/internal/types.h
@@ -15,6 +15,7 @@ typedef int (*getobjopt)(const struct nf_conntrack *ct);
typedef void (*setobjopt)(struct nf_conntrack *ct);
typedef void (*set_attr_grp)(struct nf_conntrack *ct, const void *value);
typedef void (*get_attr_grp)(const struct nf_conntrack *ct, void *data);
+typedef void (*set_filter_dump_attr)(struct nfct_filter_dump *filter_dump, const void *value);
/*
* expectation types