From 19f35b21dbe2bb4386eeced4e0d87f3b2e1dd8bf Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 14 Jul 2009 17:16:08 +0200 Subject: src: add support for DCCP 64-bits sequence number tracking From: Pablo Neira Ayuso 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 --- src/conntrack/build.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/conntrack/build.c') 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: -- cgit v1.2.3