From 959d2850ad243e469300a27d924ef0f6dcf3d5f4 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 1 Mar 2012 02:21:53 +0100 Subject: add missing ICMPv6 support Signed-off-by: Pablo Neira Ayuso --- src/libnetfilter_cttimeout.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libnetfilter_cttimeout.c b/src/libnetfilter_cttimeout.c index 9de3837..b626407 100644 --- a/src/libnetfilter_cttimeout.c +++ b/src/libnetfilter_cttimeout.c @@ -69,6 +69,10 @@ static const char *const icmp_state_to_name[] = { [NFCT_TIMEOUT_ATTR_ICMP] = "TIMEOUT", }; +static const char *const icmpv6_state_to_name[] = { + [NFCT_TIMEOUT_ATTR_ICMPV6] = "TIMEOUT", +}; + static struct { uint32_t nlattr_max; uint32_t attr_max; @@ -109,6 +113,11 @@ static struct { .attr_max = NFCT_TIMEOUT_ATTR_UDPLITE_MAX, .state_to_name = udp_state_to_name, }, + [IPPROTO_ICMPV6] = { + .nlattr_max = __CTA_TIMEOUT_ICMPV6_MAX, + .attr_max = NFCT_TIMEOUT_ATTR_ICMPV6_MAX, + .state_to_name = icmpv6_state_to_name, + }, /* add your new supported protocol tracker here. */ [IPPROTO_RAW] = { .nlattr_max = __CTA_TIMEOUT_GENERIC_MAX, -- cgit v1.2.3