summaryrefslogtreecommitdiffstats
path: root/extensions/libct_proto_icmpv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libct_proto_icmpv6.c')
-rw-r--r--extensions/libct_proto_icmpv6.c9
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;
}