summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>2021-10-10 19:39:15 +0900
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-11 10:59:57 +0200
commit54b482ce4efd4dad9cc52a8e16b198ce3e2b4908 (patch)
tree5a9f4421ac2570e1914b72d749dc3a929624e54b
parentf2c2644679b9d351a47bfdb84441074482dd9d77 (diff)
conntrack: fix invmap_icmpv6 entriesHEADmaster
Incorrect mapping of the expected reply message. Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/conntrack/proto.c4
1 files 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)