From 7539372db799568a0c1a9048331059c2f9bcdf78 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 8 Mar 2014 14:12:47 +0100 Subject: [PATCH] icmpv6: add multicast types Only add them to check if the code is 0 and to make sure the default case doesn't set an 'unknown type' event. --- src/decode-icmpv6.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/decode-icmpv6.c b/src/decode-icmpv6.c index 89de9989bf..7819f25498 100644 --- a/src/decode-icmpv6.c +++ b/src/decode-icmpv6.c @@ -293,6 +293,24 @@ int DecodeICMPV6(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, ENGINE_SET_EVENT(p, ICMPV6_UNKNOWN_CODE); } break; + case MLD_LISTENER_QUERY: + SCLogDebug("MLD_LISTENER_QUERY"); + if (p->icmpv6h->code != 0) { + ENGINE_SET_EVENT(p, ICMPV6_UNKNOWN_CODE); + } + break; + case MLD_LISTENER_REPORT: + SCLogDebug("MLD_LISTENER_REPORT"); + if (p->icmpv6h->code != 0) { + ENGINE_SET_EVENT(p, ICMPV6_UNKNOWN_CODE); + } + break; + case MLD_LISTENER_REDUCTION: + SCLogDebug("MLD_LISTENER_REDUCTION"); + if (p->icmpv6h->code != 0) { + ENGINE_SET_EVENT(p, ICMPV6_UNKNOWN_CODE); + } + break; default: SCLogDebug("ICMPV6 Message type %" PRIu8 " not " "implemented yet", ICMPV6_GET_TYPE(p));