* [PATCH net-next v1] netlink: specs: nftables: allow decode of tailscale ruleset
@ 2024-09-04 9:10 Donald Hunter
2024-09-06 3:31 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Donald Hunter @ 2024-09-04 9:10 UTC (permalink / raw)
To: netdev, Jakub Kicinski, David S. Miller, Eric Dumazet,
Paolo Abeni, Florian Westphal, netfilter-devel
Cc: donald.hunter, Donald Hunter
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>
---
Documentation/netlink/specs/nftables.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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
@@ -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:
@@ -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
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next v1] netlink: specs: nftables: allow decode of tailscale ruleset
2024-09-04 9:10 [PATCH net-next v1] netlink: specs: nftables: allow decode of tailscale ruleset Donald Hunter
@ 2024-09-06 3:31 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-09-06 3:31 UTC (permalink / raw)
To: Donald Hunter
Cc: netdev, kuba, davem, edumazet, pabeni, fw, netfilter-devel,
donald.hunter
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 4 Sep 2024 10:10:24 +0100 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [net-next,v1] netlink: specs: nftables: allow decode of tailscale ruleset
https://git.kernel.org/netdev/net-next/c/e10034e38e9d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-06 3:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 9:10 [PATCH net-next v1] netlink: specs: nftables: allow decode of tailscale ruleset Donald Hunter
2024-09-06 3:31 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).