Skip to content

Commit 3ec920b

Browse files
liuhangbinkuba-moo
authored andcommitted
selftests: rtnetlink: update netdevsim ipsec output format
After the netdevsim update to use human-readable IP address formats for IPsec, we can now use the source and destination IPs directly in testing. Here is the result: # ./rtnetlink.sh -t kci_test_ipsec_offload PASS: ipsec_offload Signed-off-by: Hangbin Liu <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2cf567f commit 3ec920b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/net/rtnetlink.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,10 +809,10 @@ kci_test_ipsec_offload()
809809
# does driver have correct offload info
810810
run_cmd diff $sysfsf - << EOF
811811
SA count=2 tx=3
812-
sa[0] tx ipaddr=0x00000000 00000000 00000000 00000000
812+
sa[0] tx ipaddr=$dstip
813813
sa[0] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1
814814
sa[0] key=0x34333231 38373635 32313039 36353433
815-
sa[1] rx ipaddr=0x00000000 00000000 00000000 037ba8c0
815+
sa[1] rx ipaddr=$srcip
816816
sa[1] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1
817817
sa[1] key=0x34333231 38373635 32313039 36353433
818818
EOF

0 commit comments

Comments
 (0)