Skip to content

Commit

Permalink
netlink: specs: nftables: allow decode of tailscale ruleset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Donald Hunter authored and Jakub Kicinski committed Sep 6, 2024
1 parent 08062af commit e10034e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Documentation/netlink/specs/nftables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,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:
Expand Down Expand Up @@ -1113,6 +1126,9 @@ sub-messages:
-
value: reject
attribute-set: expr-reject-attrs
-
value: target
attribute-set: expr-target-attrs
-
value: tproxy
attribute-set: expr-tproxy-attrs
Expand Down

0 comments on commit e10034e

Please sign in to comment.