From 54b482ce4efd4dad9cc52a8e16b198ce3e2b4908 Mon Sep 17 00:00:00 2001 From: Ken-ichirou MATSUZAWA Date: Sun, 10 Oct 2021 19:39:15 +0900 Subject: conntrack: fix invmap_icmpv6 entries Incorrect mapping of the expected reply message. Signed-off-by: Ken-ichirou MATSUZAWA Signed-off-by: Pablo Neira Ayuso --- src/conntrack/proto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conntrack/proto.c b/src/conntrack/proto.c index ba79b9b..03b37c0 100644 --- a/src/conntrack/proto.c +++ b/src/conntrack/proto.c @@ -15,8 +15,8 @@ static const uint8_t invmap_icmp[] = { static const uint8_t invmap_icmpv6[] = { [ICMPV6_ECHO_REQUEST - 128] = ICMPV6_ECHO_REPLY + 1, [ICMPV6_ECHO_REPLY - 128] = ICMPV6_ECHO_REQUEST + 1, - [ICMPV6_NI_QUERY - 128] = ICMPV6_NI_QUERY + 1, - [ICMPV6_NI_REPLY - 128] = ICMPV6_NI_REPLY + 1 + [ICMPV6_NI_QUERY - 128] = ICMPV6_NI_REPLY + 1, + [ICMPV6_NI_REPLY - 128] = ICMPV6_NI_QUERY + 1 }; uint8_t __icmp_reply_type(uint8_t type) -- cgit v1.2.3