summaryrefslogtreecommitdiffstats
path: root/tests/py/bridge/icmpX.t.payload
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-10-16 14:31:46 +0200
committerPhil Sutter <phil@nwl.cc>2026-01-27 23:01:54 +0100
commit0f566ac1c1dbd9f2e7d006ca01211aae791f09a8 (patch)
treea672d67eefb7ca5b51550721c9d440bd1845a887 /tests/py/bridge/icmpX.t.payload
parentdb82466117b8bfc93923eec49114d47200f7f913 (diff)
tests: py: Update payload records
This is the bulk change of py test suite payload records with improved data reg printing in libnftnl using data (component) size and byteorder collected in nftables. Aside from printing values in the right byte order and padded with zeroes to match their actual size, this patch also exposes the improved set element dump format: * No '[end]' marker, 'element' clearly separates elements * No semi-colon for non-map elements * 'flags' value printed only if non-zero and prefixed by 'flags' to distinguish from element data Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/py/bridge/icmpX.t.payload')
-rw-r--r--tests/py/bridge/icmpX.t.payload25
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/py/bridge/icmpX.t.payload b/tests/py/bridge/icmpX.t.payload
index f9ea7b60..d6634bea 100644
--- a/tests/py/bridge/icmpX.t.payload
+++ b/tests/py/bridge/icmpX.t.payload
@@ -1,36 +1,35 @@
# ip protocol icmp icmp type echo-request
bridge test-bridge input
[ meta load protocol => reg 1 ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ payload load 1b @ network header + 9 => reg 1 ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x01 ]
[ payload load 1b @ transport header + 0 => reg 1 ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x08 ]
# icmp type echo-request
bridge test-bridge input
[ payload load 2b @ link header + 12 => reg 1 ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x01 ]
[ payload load 1b @ transport header + 0 => reg 1 ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x08 ]
# ip6 nexthdr icmpv6 icmpv6 type echo-request
bridge test-bridge input
[ meta load protocol => reg 1 ]
- [ cmp eq reg 1 0x0000dd86 ]
+ [ cmp eq reg 1 0x86dd ]
[ payload load 1b @ network header + 6 => reg 1 ]
- [ cmp eq reg 1 0x0000003a ]
+ [ cmp eq reg 1 0x3a ]
[ payload load 1b @ transport header + 0 => reg 1 ]
- [ cmp eq reg 1 0x00000080 ]
+ [ cmp eq reg 1 0x80 ]
# icmpv6 type echo-request
bridge test-bridge input
[ payload load 2b @ link header + 12 => reg 1 ]
- [ cmp eq reg 1 0x0000dd86 ]
+ [ cmp eq reg 1 0x86dd ]
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x0000003a ]
+ [ cmp eq reg 1 0x3a ]
[ payload load 1b @ transport header + 0 => reg 1 ]
- [ cmp eq reg 1 0x00000080 ]
-
+ [ cmp eq reg 1 0x80 ]