The branch main has been updated by kp:

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

commit 460729900299ed31059ffef99e1ae9a9212f8def
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-05-29 08:31:23 +0000
Commit:     Kristof Provost <k...@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
 }
 

Reply via email to