]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
libnftables-json: fix raw payload expression documentation
authorEric Long <i@hack3r.moe>
Thu, 17 Oct 2024 15:33:17 +0000 (23:33 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Jan 2025 00:35:37 +0000 (01:35 +0100)
commit 570320ab9a0752c7749a6c9cc85b34a5e7ab91b5 upstream.

Raw payload expression accesses payload data in bits, not bytes.

Fixes: 872f373dc50f7 ("doc: Add JSON schema documentation")
Signed-off-by: Eric Long <i@hack3r.moe>
Signed-off-by: Phil Sutter <phil@nwl.cc>
doc/libnftables-json.adoc

index 10c17fa11e5c3c9600800baf0953caa57618b209..409c5b563c3411efa8945f620ebd68ab48ca4fff 100644 (file)
@@ -1179,7 +1179,7 @@ ____
 
 Construct a payload expression, i.e. a reference to a certain part of packet
 data. The first form creates a raw payload expression to point at a random
-number (*len*) of bytes at a certain offset (*offset*) from a given reference
+number (*len*) of bits at a certain offset (*offset*) from a given reference
 point (*base*). The following *base* values are accepted:
 
 *"ll"*::