* [PATCH nft] tests: py: fix payloads for sets with user data
@ 2022-09-18 12:39 Jeremy Sowden
2022-09-18 12:43 ` Jeremy Sowden
0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Sowden @ 2022-09-18 12:39 UTC (permalink / raw)
To: Netfilter Devel
A change was recently made to libnftnl to stop set user data being truncated in
dumps. This causes mismatches in the payloads of certain Python test-cases.
This commit updates them to include the formerly truncated user data.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
tests/py/ip6/srh.t.payload | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/py/ip6/srh.t.payload b/tests/py/ip6/srh.t.payload
index b6247456eb72..678e570e6621 100644
--- a/tests/py/ip6/srh.t.payload
+++ b/tests/py/ip6/srh.t.payload
@@ -11,7 +11,8 @@ ip6 test-ip6 input
# srh last-entry { 0, 4-127, 255 }
__set%d test-ip6 7 size 5
__set%d test-ip6 0
- element 00000000 : 0 [end] element 00000001 : 1 [end] element 00000004 : 0 [end] element 00000080 : 1 [end] element 000000ff : 0 [end] userdata = {
+ element 00000000 : 0 [end] element 00000001 : 1 [end] element 00000004 : 0 [end] element 00000080 : 1 [end] element 000000ff : 0 [end] userdata = { \x01\x04\x01\x00\x00\x00 }
+
ip6 test-ip6 input
[ exthdr load ipv6 1b @ 43 + 4 => reg 1 ]
[ lookup reg 1 set __set%d ]
@@ -29,7 +30,8 @@ ip6 test-ip6 input
# srh flags { 0, 4-127, 255 }
__set%d test-ip6 7 size 5
__set%d test-ip6 0
- element 00000000 : 0 [end] element 00000001 : 1 [end] element 00000004 : 0 [end] element 00000080 : 1 [end] element 000000ff : 0 [end] userdata = {
+ element 00000000 : 0 [end] element 00000001 : 1 [end] element 00000004 : 0 [end] element 00000080 : 1 [end] element 000000ff : 0 [end] userdata = { \x01\x04\x01\x00\x00\x00 }
+
ip6 test-ip6 input
[ exthdr load ipv6 1b @ 43 + 5 => reg 1 ]
[ lookup reg 1 set __set%d ]
@@ -47,7 +49,8 @@ ip6 test-ip6 input
# srh tag { 0, 4-127, 0xffff }
__set%d test-ip6 7 size 5
__set%d test-ip6 0
- element 00000000 : 0 [end] element 00000100 : 1 [end] element 00000400 : 0 [end] element 00008000 : 1 [end] element 0000ffff : 0 [end] userdata = {
+ element 00000000 : 0 [end] element 00000100 : 1 [end] element 00000400 : 0 [end] element 00008000 : 1 [end] element 0000ffff : 0 [end] userdata = { \x01\x04\x01\x00\x00\x00 }
+
ip6 test-ip6 input
[ exthdr load ipv6 2b @ 43 + 6 => reg 1 ]
[ lookup reg 1 set __set%d ]
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH nft] tests: py: fix payloads for sets with user data
2022-09-18 12:39 [PATCH nft] tests: py: fix payloads for sets with user data Jeremy Sowden
@ 2022-09-18 12:43 ` Jeremy Sowden
0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Sowden @ 2022-09-18 12:43 UTC (permalink / raw)
To: Netfilter Devel
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
On 2022-09-18, at 13:39:32 +0100, Jeremy Sowden wrote:
> A change was recently made to libnftnl to stop set user data being truncated in
> dumps. This causes mismatches in the payloads of certain Python test-cases.
> This commit updates them to include the formerly truncated user data.
Just noticed that Pablo has already fixed this. Never mind.
J.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-18 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-18 12:39 [PATCH nft] tests: py: fix payloads for sets with user data Jeremy Sowden
2022-09-18 12:43 ` Jeremy Sowden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).