From: Eric Long Date: Thu, 17 Oct 2024 15:33:17 +0000 (+0800) Subject: libnftables-json: fix raw payload expression documentation X-Git-Tag: v1.0.6.1~161 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15f422d8e70de5ccec06c6b0f5cb7a2a70514a9b;p=thirdparty%2Fnftables.git libnftables-json: fix raw payload expression documentation 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 Signed-off-by: Phil Sutter --- diff --git a/doc/libnftables-json.adoc b/doc/libnftables-json.adoc index 10c17fa1..409c5b56 100644 --- a/doc/libnftables-json.adoc +++ b/doc/libnftables-json.adoc @@ -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"*::