From 6ab0fd6c67dbccedb49209b94eb7f740dd32fd2a Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Tue, 11 Apr 2023 21:45:34 +0100 Subject: exthdr: add boolean DCCP option matching Iptables supports the matching of DCCP packets based on the presence or absence of DCCP options. Extend exthdr expressions to add this functionality to nftables. Link: https://bugzilla.netfilter.org/show_bug.cgi?id=930 Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- src/scanner.l | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/scanner.l') diff --git a/src/scanner.l b/src/scanner.l index 15ca3d46..c903b8c3 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -632,6 +632,9 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) { "dport" { return DPORT; } } +{ + "option" { return OPTION; } +} "vxlan" { return VXLAN; } "vni" { return VNI; } -- cgit v1.2.3