]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: update outdated route and pkttype info
author谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Tue, 20 Aug 2024 09:15:03 +0000 (09:15 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Jan 2025 00:35:36 +0000 (01:35 +0100)
commit 5089d0f46676aa13ab679f6e4820a08957f2e7e6 upstream.

inet family supports route type.
unicast pkttype changed to host pkttype.

Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
doc/nft.txt
doc/statements.txt

index 7a99f65b1407e0771918ccd718caa01466e44fa3..e878d7e08a5ce71ec074139e286bc70b8f1a9af0 100644 (file)
@@ -408,7 +408,7 @@ Chains of this type perform Native Address Translation based on conntrack
 entries. Only the first packet of a connection actually traverses this chain -
 its rules usually define details of the created conntrack entry (NAT
 statements for instance).
-|route | ip, ip6 | output |
+|route | ip, ip6, inet | output |
 If a packet has traversed a chain of this type and is about to be accepted, a
 new route lookup is performed if relevant parts of the IP header have changed.
 This allows one to e.g. implement policy routing selectors in nftables.
index 5aa8560ab51394c49f85533759ac51c47e0b87e8..9c346aa065089e5e66204a0e81095c0b5d8d98ce 100644 (file)
@@ -56,7 +56,7 @@ set ip DSCP (diffserv) header field or ipv6 flow labels.
 ---------------------------------------
 # redirect tcp:http from 192.160.0.0/16 to local machine for routing instead of bridging
 # assumes 00:11:22:33:44:55 is local MAC address.
-bridge input meta iif eth0 ip saddr 192.168.0.0/16 tcp dport 80 meta pkttype set unicast ether daddr set 00:11:22:33:44:55
+bridge input meta iif eth0 ip saddr 192.168.0.0/16 tcp dport 80 meta pkttype set host ether daddr set 00:11:22:33:44:55
 -------------------------------------------
 
 .Set IPv4 DSCP header field