aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2022-09-26 09:58:51 +0000
committerKristof Provost <kp@FreeBSD.org>2022-09-26 11:54:20 +0000
commit76e1c9c671043e08bdd951ae6c768b541fdede19 (patch)
tree9cceabd61affd42a7e4880d3777b21eddd579264 /tests
parent0fdc247274293a5f77868e8eed45457ffeaaba29 (diff)
downloadsrc-76e1c9c671043e08bdd951ae6c768b541fdede19.tar.gz
src-76e1c9c671043e08bdd951ae6c768b541fdede19.zip
if_ovpn: fix address family check when traffic class bits are set
When the tunneled (IPv6) traffic had traffic class bits set (but only >= 16) the packet got lost on the receive side. This happened because the address family check in ovpn_get_af() failed to mask correctly, so the version check didn't match, causing us to drop the packet. While here also extend the existing 6-in-6 test case to trigger this issue. PR: 266598 Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/net/if_ovpn/if_ovpn.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/net/if_ovpn/if_ovpn.sh b/tests/sys/net/if_ovpn/if_ovpn.sh
index 024f2488c951..bc1d3a85c987 100644
--- a/tests/sys/net/if_ovpn/if_ovpn.sh
+++ b/tests/sys/net/if_ovpn/if_ovpn.sh
@@ -383,6 +383,7 @@ atf_test_case "6in6" "cleanup"
sleep 10
atf_check -s exit:0 -o ignore jexec b ping6 -c 3 2001:db8:1::1
+ atf_check -s exit:0 -o ignore jexec b ping6 -c 3 -z 16 2001:db8:1::1
}
6in6_cleanup()