]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fastlog: apply icmp type logic to icmpv6 too 4431/head
authorVictor Julien <victor@inliniac.net>
Mon, 9 Dec 2019 10:30:10 +0000 (11:30 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 9 Dec 2019 10:31:16 +0000 (11:31 +0100)
src/alert-fastlog.c

index f87acce48853c76a59e6858a606af7dadb01d542..46f4f7ed3bf9af678158cec30c3b6f19e68d3e24 100644 (file)
@@ -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;
             }