Skip to contentSkip to conversation

libnftables-json: fix raw payload expression documentation

PATCH In review Eric Long 2 participants 2 messages Oct 17, 2024 netfilter

lore
Share & tools
lore

Eric Long

author
#0 lore raw

PATCH 1/1 libnftables-json: fix raw payload expression documentation

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

---
 doc/libnftables-json.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/libnftables-json.adoc +1 -1
index a8a6165fde59d419f1ec7a1fa904e1491fe15284..2f29ac0436280719e50016ee92a6b78605894831 100644
@@ -1182,7 +1182,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"*::

---
base-commit: ff0846371c0c1cca41fd61ef2c481248684b8aa9
change-id: 20241017-libnftables-json-doc-fix-e2245a24cedc

Best regards,

Signature · 1 line
Eric Long <[email protected]>
reviewer
#1 lore raw
Quoted 3 lines · On Thu, Oct 17, 2024 at 11:33:17PM +0800, Eric Long via B4 Relay wrote:

From: Eric Long <[email protected]>

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

Patch applied after adding your Signed-off-by and a Fixes: tag. Please keep in mind at least the former is required for submitted patches, and the latter not just a nuisance since tooling may depend on it for backporting.

Thanks, Phil