[openssh-commits] [openssh] 03/03: upstream: Query addressfamily for inet6 before running IPv6 tests.
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Nov 16 20:35:42 AEDT 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit e651bed9fa666ca27c61bab778634ec48b791db3
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Mon Nov 16 09:02:40 2026 +0000
upstream: Query addressfamily for inet6 before running IPv6 tests.
OpenBSD-Regress-ID: c5e880b4ac12d6bd17efc19c210d795dcf13b8e5
---
regress/addrmatch.sh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/regress/addrmatch.sh b/regress/addrmatch.sh
index b2ae39aef..b04905714 100644
--- a/regress/addrmatch.sh
+++ b/regress/addrmatch.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: addrmatch.sh,v 1.8 2026/10/30 06:25:27 djm Exp $
+# $OpenBSD: addrmatch.sh,v 1.9 2026/11/16 09:02:40 dtucker Exp $
# Placed in the Public Domain.
tid="address match"
@@ -41,7 +41,8 @@ run_trial user 1.1.1.1 somehost.example.com 1.2.3.4 1234 match2 "bare IP4 addres
run_trial user 19.0.0.1 somehost 127.0.0.1 1234 match3 "localaddress"
run_trial user 19.0.0.1 somehost 1.2.3.4 5678 match4 "localport"
-if test "$TEST_SSH_IPV6" != "no"; then
+if ${SSH} -Qaddressfamily | grep inet6 >/dev/null; then
+
run_trial user ::1 somehost.example.com ::2 1234 match2 "bare IP6 address"
run_trial user ::2 somehost.example.com ::2 1234 nomatch "deny IPv6"
run_trial user ::3 somehost ::2 1234 nomatch "IP6 negated"
@@ -51,12 +52,15 @@ run_trial user 2001::1 somehost ::2 1234 nomatch "IP6 network"
run_trial user fe80::1%1 somehost ::2 1234 match2 "IP6 scoped link-local address"
run_trial user ::5 somehost ::1 1234 match3 "IP6 localaddress"
run_trial user ::5 somehost ::2 5678 match4 "IP6 localport"
+
+invalid_ipv6=2000:aa:bb:01::/56
+
fi
#
# Check that we catch invalid address/mask in Match Address/Localaddress
#
-for i in 10.0.1.0/8 10.0.0.1/24 2000:aa:bb:01::/56; do
+for i in 10.0.1.0/8 10.0.0.1/24 ${invalid_ipv6}; do
for a in address localaddress; do
verbose "test invalid Match $a $i"
echo "Match $a $i" > $OBJ/sshd_proxy
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list