summaryrefslogtreecommitdiff
path: root/include/network.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-04-18 19:36:38 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-04-18 19:36:38 +0200
commit400ae54438c4b85126f9fab0ae1dc067823b70f7 (patch)
tree6a558de31de6dd19ba193890df883ad2c768890f /include/network.h
parenta9554339451a0698e33b0964d0e8113f714470a4 (diff)
downloadconntrack-tools-400ae54438c4b85126f9fab0ae1dc067823b70f7.tar.gz
conntrack-tools-400ae54438c4b85126f9fab0ae1dc067823b70f7.zip
sync: add support for SCTP state replication
This patch adds initial support for SCTP state replication. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/network.h')
-rw-r--r--include/network.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/network.h b/include/network.h
index b182339..06c0463 100644
--- a/include/network.h
+++ b/include/network.h
@@ -199,7 +199,7 @@ enum nta_attr {
NTA_IPV6, /* struct nfct_attr_grp_ipv6 */
NTA_L4PROTO, /* uint8_t */
NTA_PORT, /* struct nfct_attr_grp_port */
- NTA_STATE = 4, /* uint8_t */
+ NTA_STATE_TCP = 4, /* uint8_t */
NTA_STATUS, /* uint32_t */
NTA_TIMEOUT, /* uint32_t */
NTA_MARK, /* uint32_t */
@@ -212,6 +212,7 @@ enum nta_attr {
NTA_SPAT_PORT, /* uint16_t */
NTA_DPAT_PORT, /* uint16_t */
NTA_NAT_SEQ_ADJ = 16, /* struct nta_attr_natseqadj */
+ NTA_STATE_SCTP, /* struct nta_attr_sctp */
NTA_MAX
};
@@ -224,6 +225,11 @@ struct nta_attr_natseqadj {
uint32_t repl_seq_offset_after;
};
+struct nta_attr_sctp {
+ uint8_t state;
+ uint32_t vtag_orig, vtag_repl;
+};
+
void build_payload(const struct nf_conntrack *ct, struct nethdr *n);
int parse_payload(struct nf_conntrack *ct, struct nethdr *n, size_t remain);