summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/geneve.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/inet/geneve.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/inet/geneve.t.payload')
-rw-r--r--tests/py/inet/geneve.t.payload83
1 files changed, 41 insertions, 42 deletions
diff --git a/tests/py/inet/geneve.t.payload b/tests/py/inet/geneve.t.payload
index 59778738..f38a63a7 100644
--- a/tests/py/inet/geneve.t.payload
+++ b/tests/py/inet/geneve.t.payload
@@ -1,114 +1,113 @@
# udp dport 6081 geneve vni 10
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ payload load 3b @ tunnel header + 4 => reg 1 ] ]
- [ cmp eq reg 1 0x000a0000 ]
+ [ cmp eq reg 1 0x00000a ]
# udp dport 6081 geneve ip saddr 10.141.11.2
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ meta load protocol => reg 1 ] ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ inner type 2 hdrsize 8 flags f [ payload load 4b @ network header + 12 => reg 1 ] ]
- [ cmp eq reg 1 0x020b8d0a ]
+ [ cmp eq reg 1 0x0a8d0b02 ]
# udp dport 6081 geneve ip saddr 10.141.11.0/24
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ meta load protocol => reg 1 ] ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ inner type 2 hdrsize 8 flags f [ payload load 3b @ network header + 12 => reg 1 ] ]
- [ cmp eq reg 1 0x000b8d0a ]
+ [ cmp eq reg 1 0x0a8d0b ]
# udp dport 6081 geneve ip protocol 1
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ meta load protocol => reg 1 ] ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ inner type 2 hdrsize 8 flags f [ payload load 1b @ network header + 9 => reg 1 ] ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x01 ]
# udp dport 6081 geneve udp sport 8888
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ meta load l4proto => reg 1 ] ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ inner type 2 hdrsize 8 flags f [ payload load 2b @ transport header + 0 => reg 1 ] ]
- [ cmp eq reg 1 0x0000b822 ]
+ [ cmp eq reg 1 0x22b8 ]
# udp dport 6081 geneve icmp type echo-reply
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ payload load 2b @ link header + 12 => reg 1 ] ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ inner type 2 hdrsize 8 flags f [ meta load l4proto => reg 1 ] ]
- [ cmp eq reg 1 0x00000001 ]
+ [ cmp eq reg 1 0x01 ]
[ inner type 2 hdrsize 8 flags f [ payload load 1b @ transport header + 0 => reg 1 ] ]
- [ cmp eq reg 1 0x00000000 ]
+ [ cmp eq reg 1 0x00 ]
# udp dport 6081 geneve ether saddr 62:87:4d:d6:19:05
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ payload load 6b @ link header + 6 => reg 1 ] ]
- [ cmp eq reg 1 0xd64d8762 0x00000519 ]
+ [ cmp eq reg 1 0x62874dd6 0x1905 ]
# udp dport 6081 geneve vlan id 10
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ payload load 2b @ link header + 12 => reg 1 ] ]
- [ cmp eq reg 1 0x00000081 ]
+ [ cmp eq reg 1 0x8100 ]
[ inner type 2 hdrsize 8 flags f [ payload load 2b @ link header + 14 => reg 1 ] ]
- [ bitwise reg 1 = ( reg 1 & 0x0000ff0f ) ^ 0x00000000 ]
- [ cmp eq reg 1 0x00000a00 ]
+ [ bitwise reg 1 = ( reg 1 & 0x0fff ) ^ 0x0000 ]
+ [ cmp eq reg 1 0x000a ]
# udp dport 6081 geneve ip dscp 0x02
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ meta load protocol => reg 1 ] ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ inner type 2 hdrsize 8 flags f [ payload load 1b @ network header + 1 => reg 1 ] ]
- [ bitwise reg 1 = ( reg 1 & 0x000000fc ) ^ 0x00000000 ]
- [ cmp eq reg 1 0x00000008 ]
+ [ bitwise reg 1 = ( reg 1 & 0xfc ) ^ 0x00 ]
+ [ cmp eq reg 1 0x08 ]
# udp dport 6081 geneve ip saddr . geneve ip daddr { 1.2.3.4 . 4.3.2.1 }
__set%d test-ip4 3 size 1
__set%d test-ip4 0
- element 04030201 01020304 : 0 [end]
+ element 01020304 . 04030201
ip test-ip4 input
[ meta load l4proto => reg 1 ]
- [ cmp eq reg 1 0x00000011 ]
+ [ cmp eq reg 1 0x11 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp eq reg 1 0x0000c117 ]
+ [ cmp eq reg 1 0x17c1 ]
[ inner type 2 hdrsize 8 flags f [ meta load protocol => reg 1 ] ]
- [ cmp eq reg 1 0x00000008 ]
+ [ cmp eq reg 1 0x0800 ]
[ inner type 2 hdrsize 8 flags f [ payload load 4b @ network header + 12 => reg 1 ] ]
[ inner type 2 hdrsize 8 flags f [ payload load 4b @ network header + 16 => reg 9 ] ]
[ lookup reg 1 set __set%d ]
-