From 2e86f45d0260a0dab8fed974853d84d9923bbc55 Mon Sep 17 00:00:00 2001 From: Nicolas Cavallari Date: Wed, 20 Sep 2023 17:03:34 +0200 Subject: icmpv6: Allow matching target address in NS/NA, redirect and MLD It was currently not possible to match the target address of a neighbor solicitation or neighbor advertisement against a dynamic set, unlike in IPv4. Since they are many ICMPv6 messages with an address at the same offset, allow filtering on the target address for all icmp types that have one. While at it, also allow matching the destination address of an ICMPv6 redirect. Signed-off-by: Nicolas Cavallari Signed-off-by: Florian Westphal --- src/scanner.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/scanner.l') diff --git a/src/scanner.l b/src/scanner.l index 15b272ab..88376b7a 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -589,6 +589,8 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "param-problem" { return PPTR; } "max-delay" { return MAXDELAY; } "mtu" { return MTU; } + "taddr" { return TADDR; } + "daddr" { return DADDR; } } { "sequence" { return SEQUENCE; } -- cgit v1.2.3