diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-04-13 21:59:46 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-04-13 21:59:46 +0000 |
commit | ebb9a1aa3813d71b99d7508c88b9cbf525e15b4a (patch) | |
tree | 9df4a1f35b09de313094bf3d61bd1feab2109211 /extensions/libct_proto_icmpv6.c | |
parent | 3ce7643c221878785ed0390cdc65e69054887f08 (diff) | |
download | conntrack-tools-ebb9a1aa3813d71b99d7508c88b9cbf525e15b4a.tar.gz conntrack-tools-ebb9a1aa3813d71b99d7508c88b9cbf525e15b4a.zip |
fix conntrack -U -p tcp [...]
Diffstat (limited to 'extensions/libct_proto_icmpv6.c')
-rw-r--r-- | extensions/libct_proto_icmpv6.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/libct_proto_icmpv6.c b/extensions/libct_proto_icmpv6.c index 6c1c358..5346b59 100644 --- a/extensions/libct_proto_icmpv6.c +++ b/extensions/libct_proto_icmpv6.c @@ -77,6 +77,9 @@ static int parse(char c, nfct_set_attr_u8(ct, ATTR_ICMP_TYPE, atoi(optarg)); + + nfct_set_attr_u8(ct, ATTR_L4PROTO, IPPROTO_ICMPV6); + *flags |= ICMP_TYPE; break; @@ -87,6 +90,9 @@ static int parse(char c, nfct_set_attr_u8(ct, ATTR_ICMP_CODE, atoi(optarg)); + + nfct_set_attr_u8(ct, ATTR_L4PROTO, IPPROTO_ICMPV6); + *flags |= ICMP_CODE; break; @@ -97,6 +103,9 @@ static int parse(char c, nfct_set_attr_u16(ct, ATTR_ICMP_ID, htons(atoi(optarg))); + + nfct_set_attr_u8(ct, ATTR_L4PROTO, IPPROTO_ICMPV6); + *flags |= ICMP_ID; break; } |