Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2025 09:05:18 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 460729900299 - main - pf tests: make sctp:related_icmp test more robust
Message-ID:  <202505290905.54T95I2b011487@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=460729900299ed31059ffef99e1ae9a9212f8def

commit 460729900299ed31059ffef99e1ae9a9212f8def
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-05-29 08:31:23 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-05-29 08:31:23 +0000

    pf tests: make sctp:related_icmp test more robust
    
    Send more data (i.e. more than one large packet) to the SCTP server so rtr2
    generates more than one ICMP error message.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 tests/sys/netpfil/pf/sctp.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/netpfil/pf/sctp.sh b/tests/sys/netpfil/pf/sctp.sh
index 563103827fac..14cd49dfb1f5 100644
--- a/tests/sys/netpfil/pf/sctp.sh
+++ b/tests/sys/netpfil/pf/sctp.sh
@@ -818,10 +818,10 @@ related_icmp_body()
 
 	# Generate traffic that will be fragmented by rtr2, and will provoke an
 	# ICMP unreachable - need to frag (mtu 1300) message
-	dd if=/dev/random bs=1600 count=1 | nc --sctp -N -w 3 203.0.113.2 1234
+	dd if=/dev/random bs=10000 count=1 | nc --sctp -N -w 3 203.0.113.2 1234
 
 	# We'd expect to see an ICMP message
-	atf_check -s exit:0 -o match:".*destination unreachable: 1" \
+	atf_check -s exit:0 -o match:".*destination unreachable: [1-9]" \
 	    netstat -s -p icmp
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505290905.54T95I2b011487>