summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Wirt <formorer@debian.org>2014-09-19 10:15:13 +0200
committerAlexander Wirt <formorer@debian.org>2014-09-19 10:15:13 +0200
commit9f760e5d3f6b44ecf5bb7144517e022fd987fa76 (patch)
treea19ccbfccc5049ee3a8252725191af221f31b3ea /include
parent6b61aefbf3de71852386f5f26d60c10ef62407d3 (diff)
downloadconntrack-tools-9f760e5d3f6b44ecf5bb7144517e022fd987fa76.tar.gz
conntrack-tools-9f760e5d3f6b44ecf5bb7144517e022fd987fa76.zip
Imported Upstream version 1.4.2
Diffstat (limited to 'include')
-rw-r--r--include/conntrack.h2
-rw-r--r--include/conntrackd.h1
-rw-r--r--include/filter.h1
-rw-r--r--include/internal.h1
-rw-r--r--include/network.h16
5 files changed, 7 insertions, 14 deletions
diff --git a/include/conntrack.h b/include/conntrack.h
index fd6126b..6cd9962 100644
--- a/include/conntrack.h
+++ b/include/conntrack.h
@@ -10,7 +10,7 @@
#include <netinet/in.h>
#define NUMBER_OF_CMD 19
-#define NUMBER_OF_OPT 24
+#define NUMBER_OF_OPT 25
struct ctproto_handler {
struct list_head head;
diff --git a/include/conntrackd.h b/include/conntrackd.h
index 19e613c..d338fc4 100644
--- a/include/conntrackd.h
+++ b/include/conntrackd.h
@@ -104,7 +104,6 @@ struct ct_conf {
unsigned int netlink_buffer_size_max_grown;
int nl_overrun_resync;
unsigned int flags;
- int family; /* protocol family */
unsigned int resend_queue_size; /* FTFW protocol */
unsigned int window_size;
int poll_kernel_secs;
diff --git a/include/filter.h b/include/filter.h
index 3c7c8cc..d0acd96 100644
--- a/include/filter.h
+++ b/include/filter.h
@@ -51,6 +51,7 @@ void ct_filter_set_logic(struct ct_filter *f,
enum ct_filter_type type,
enum ct_filter_logic logic);
int ct_filter_conntrack(const struct nf_conntrack *ct, int userspace);
+int ct_filter_master(const struct nf_conntrack *master);
struct exp_filter;
struct nf_expect;
diff --git a/include/internal.h b/include/internal.h
index 2ba9714..1a796a7 100644
--- a/include/internal.h
+++ b/include/internal.h
@@ -40,6 +40,7 @@ struct internal_handler {
void (*new)(struct nf_expect *exp, int origin_type);
void (*upd)(struct nf_expect *exp, int origin_type);
int (*del)(struct nf_expect *exp, int origin_type);
+ int (*find)(const struct nf_conntrack *master);
void (*dump)(int fd, int type);
void (*populate)(struct nf_expect *exp);
diff --git a/include/network.h b/include/network.h
index 41c35af..cc312cb 100644
--- a/include/network.h
+++ b/include/network.h
@@ -173,18 +173,6 @@ static inline int between(uint32_t seq1, uint32_t seq2, uint32_t seq3)
return seq3 - seq2 >= seq1 - seq2;
}
-#define PLD_NETWORK2HOST(x) \
-({ \
- x->len = ntohs(x->len); \
- x->query = ntohs(x->query); \
-})
-
-#define PLD_HOST2NETWORK(x) \
-({ \
- x->len = htons(x->len); \
- x->query = htons(x->query); \
-})
-
struct netattr {
uint16_t nta_len;
uint16_t nta_attr;
@@ -240,9 +228,13 @@ enum nta_attr {
NTA_TCP_WSCALE_ORIG, /* uint8_t */
NTA_TCP_WSCALE_REPL, /* uint8_t */
NTA_HELPER_NAME, /* string (variable length) */
+ NTA_LABELS, /* array of uint32_t (variable length) */
NTA_MAX
};
+/* allow to serialize/replicate up to 4k labels per flow */
+#define NTA_LABELS_MAX_SIZE (4096/sizeof(uint32_t))
+
struct nta_attr_natseqadj {
uint32_t orig_seq_correction_pos;
uint32_t orig_seq_offset_before;