From: Victor Julien Date: Mon, 9 Dec 2019 10:30:10 +0000 (+0100) Subject: fastlog: apply icmp type logic to icmpv6 too X-Git-Tag: suricata-5.0.1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cdb2182e458fd8b912ed63990a3f2cbeca1e9db;p=thirdparty%2Fsuricata.git fastlog: apply icmp type logic to icmpv6 too --- diff --git a/src/alert-fastlog.c b/src/alert-fastlog.c index f87acce488..46f4f7ed3b 100644 --- a/src/alert-fastlog.c +++ b/src/alert-fastlog.c @@ -152,7 +152,7 @@ int AlertFastLogger(ThreadVars *tv, void *data, const Packet *p) } uint16_t src_port_or_icmp = p->sp; uint16_t dst_port_or_icmp = p->dp; - if (IP_GET_IPPROTO(p) == IPPROTO_ICMP) { + if (IP_GET_IPPROTO(p) == IPPROTO_ICMP || IP_GET_IPPROTO(p) == IPPROTO_ICMPV6) { src_port_or_icmp = p->icmp_s.type; dst_port_or_icmp = p->icmp_s.code; }