Skip to content

Commit e10034e

Browse files
donaldhkuba-moo
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 08062af commit e10034e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Documentation/netlink/specs/nftables.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,19 @@ attribute-sets:
10271027
-
10281028
name: icmp-code
10291029
type: u8
1030+
-
1031+
name: expr-target-attrs
1032+
attributes:
1033+
-
1034+
name: name
1035+
type: string
1036+
-
1037+
name: rev
1038+
type: u32
1039+
byte-order: big-endian
1040+
-
1041+
name: info
1042+
type: binary
10301043
-
10311044
name: expr-tproxy-attrs
10321045
attributes:
@@ -1113,6 +1126,9 @@ sub-messages:
11131126
-
11141127
value: reject
11151128
attribute-set: expr-reject-attrs
1129+
-
1130+
value: target
1131+
attribute-set: expr-target-attrs
11161132
-
11171133
value: tproxy
11181134
attribute-set: expr-tproxy-attrs

0 commit comments

Comments
 (0)