diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-07-14 17:16:08 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-07-14 17:16:08 +0200 |
commit | 19f35b21dbe2bb4386eeced4e0d87f3b2e1dd8bf (patch) | |
tree | cb78ecd7c55d040c6a017890b94851a54db95bc6 /src/conntrack/build.c | |
parent | dd73e5708cc2cd127ba03fd5a82fb96b3928e7fb (diff) |
src: add support for DCCP 64-bits sequence number tracking
From: Pablo Neira Ayuso <pablo@netfilter.org>
This patch adds the support for the DCCP sequence number tracking
that is included in the upcoming Linux kernel 2.6.31.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/conntrack/build.c')
-rw-r--r-- | src/conntrack/build.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conntrack/build.c b/src/conntrack/build.c index c739396..4f2307f 100644 --- a/src/conntrack/build.c +++ b/src/conntrack/build.c @@ -160,6 +160,11 @@ static void __build_protoinfo(struct nfnlhdr *req, size_t size, CTA_PROTOINFO_DCCP_ROLE, &ct->protoinfo.dccp.role, sizeof(u_int8_t)); + if (test_bit(ATTR_DCCP_SEQ, ct->set)) + nfnl_addattr_l(&req->nlh, size, + CTA_PROTOINFO_DCCP_SEQ, + &ct->protoinfo.dccp.seq, + sizeof(u_int64_t)); nfnl_nest_end(&req->nlh, nest_proto); nfnl_nest_end(&req->nlh, nest); default: |