summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Hunter <donald.hunter@gmail.com>2024-09-04 10:10:24 +0100
committerJakub Kicinski <kuba@kernel.org>2024-09-05 18:43:56 -0700
commite10034e38e9da2a644f2aa73f2f46bb7beb8620b (patch)
treea10e6625842b4d7bcfc2d7187bd334ab65e5e03a
parent08062af0a52107a243f7608fd972edb54ca5b7f8 (diff)
downloadlinux-e10034e38e9da2a644f2aa73f2f46bb7beb8620b.tar.gz
linux-e10034e38e9da2a644f2aa73f2f46bb7beb8620b.tar.bz2
linux-e10034e38e9da2a644f2aa73f2f46bb7beb8620b.zip
netlink: specs: nftables: allow decode of tailscale ruleset
Fill another small gap in the nftables spec so that it is possible to dump a tailscale ruleset with: tools/net/ynl/cli.py --spec \ Documentation/netlink/specs/nftables.yaml --dump getrule This adds support for the 'target' expression. Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Link: https://patch.msgid.link/20240904091024.3138-1-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--Documentation/netlink/specs/nftables.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/netlink/specs/nftables.yaml b/Documentation/netlink/specs/nftables.yaml
index 4acf30cf8385..bd938bd01b6b 100644
--- a/Documentation/netlink/specs/nftables.yaml
+++ b/Documentation/netlink/specs/nftables.yaml
@@ -1028,6 +1028,19 @@ attribute-sets:
name: icmp-code
type: u8
-
+ name: expr-target-attrs
+ attributes:
+ -
+ name: name
+ type: string
+ -
+ name: rev
+ type: u32
+ byte-order: big-endian
+ -
+ name: info
+ type: binary
+ -
name: expr-tproxy-attrs
attributes:
-
@@ -1114,6 +1127,9 @@ sub-messages:
value: reject
attribute-set: expr-reject-attrs
-
+ value: target
+ attribute-set: expr-target-attrs
+ -
value: tproxy
attribute-set: expr-tproxy-attrs
-