From 1cdb2182e458fd8b912ed63990a3f2cbeca1e9db Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 9 Dec 2019 11:30:10 +0100 Subject: [PATCH] fastlog: apply icmp type logic to icmpv6 too --- src/alert-fastlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2