From: Victor Julien Date: Sat, 8 Mar 2014 13:12:47 +0000 (+0100) Subject: icmpv6: add multicast types X-Git-Tag: suricata-2.0.1rc1~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7539372db799568a0c1a9048331059c2f9bcdf78;p=thirdparty%2Fsuricata.git 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. --- 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));