diff options
author | Nicolas Cavallari <nicolas.cavallari@green-communications.fr> | 2023-09-20 17:03:34 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-10-06 11:22:20 +0200 |
commit | 2e86f45d0260a0dab8fed974853d84d9923bbc55 (patch) | |
tree | dc38fd171b9261f4155da20512b3054be80e2c7a /src/scanner.l | |
parent | 8b9ae77598b4d074cfa6dc263e6064d9bd5610d4 (diff) |
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 <nicolas.cavallari@green-communications.fr>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } <SCANSTATE_EXPR_AH,SCANSTATE_EXPR_ESP,SCANSTATE_ICMP,SCANSTATE_TCP>{ "sequence" { return SEQUENCE; } |