From nobody Thu Jul 25 13:41:47 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WVBrD2sBLz5S4mj; Thu, 25 Jul 2024 13:41:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVBrD0LzMz4RqG; Thu, 25 Jul 2024 13:41:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721914908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m3o7XEvnDeTlXuwRTLgptc3HVtd6HoXO0IGog8beBjc=; b=H99TIW6uFOtZjazF1mT+gQkfdImnnSwhOQul6aEtx1fSkC6EHl66UdHu7On9kaBAhgmEhk +CafUzso8WRELhYdwGOalwk/icmXuYvu043LMIhZtKGehDdn2DsW3yoUvYCdKP4VvKMH5U pK/zcPqcANya0KoqYSss+ZZhmNwqPNH4Clplphw9Qs+LcRH/hGeSYooNsAU33ZvL66oTrJ /EhAp1TsbRpByECJn6c2Pz9qCBwYf1xFpc2cVIDPPe8uq+5uJ6SBvYhT6My2HjHgyDx2i/ sEtDNqsuS5PtJK8Y3e209ox5HA1qDIIovoFAljIodCEKHMT5paBDjXDbgaTQYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721914908; a=rsa-sha256; cv=none; b=N1w+4mHhsZyf/C5R9lByGclJLbjKCwHHtQC4tLNag2N7lstP3MjlRXubegWTTvdvAFZeDt 7R6tSe4Id5EILZO6jsGjvOOxtiuu5i7SN2k+gcF++kpigU2/Bp6QR4bBGiSiV1G6GIWPYW UaUcTHtp5cLtvySyxZXdOqtyo8Teh4652pPJbrS9J18VMCpUba41P5LrN0J7OiUmjkYgVB kKZHf5UbJj7jenK90eUra81MggmHuUKuyqoBt45IoawfSYtLq48q9cBYNFkirVuvAkG1J7 T1TS33Mxzq5TcszV/+6011mUpT/Qz5mO2BvdelDdY2DDaDMK+m2Hj8lclb9zgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721914908; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m3o7XEvnDeTlXuwRTLgptc3HVtd6HoXO0IGog8beBjc=; b=R2TOdR+liyN4QzoDIuqf5JnWX6udEidbmyqsGOLcbb6zzA3FGLKpaUw8GP2skpgNkuhRIT 4PprRGZ7kMOr1avBy39pJY5LUouq7ZLuZRU1eB0NhndWSwpZFenckESlVmwFrOC0MfGI42 +AYlOTCi7cyNaUg30wMnwl4gtZav82lnIhyVSglJp5UN781zxWd22W7CEXwUlSat36Vj24 cNEIdx5WUz5IJAV689zxqDwOLdZrI9iT2rjorH/9WwjgKWnQMO4Vmtnb6l845YL/YBSDnk Xkqnf+PDL4l6a/LN9VGbNGY8vCeHyohDqN6ybOaniElZzv8FU2wbnoxMbAElBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WVBrC6zKWzxkV; Thu, 25 Jul 2024 13:41:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46PDfl1W044450; Thu, 25 Jul 2024 13:41:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46PDfl2m044447; Thu, 25 Jul 2024 13:41:47 GMT (envelope-from git) Date: Thu, 25 Jul 2024 13:41:47 GMT Message-Id: <202407251341.46PDfl2m044447@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 193455c91b90 - stable/13 - pf tests: test setting and retrieving timeout values List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 193455c91b9065beef2b4a86956713f633041340 Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=193455c91b9065beef2b4a86956713f633041340 commit 193455c91b9065beef2b4a86956713f633041340 Author: Kristof Provost AuthorDate: 2024-06-06 15:50:42 +0000 Commit: Kristof Provost CommitDate: 2024-07-25 08:23:35 +0000 pf tests: test setting and retrieving timeout values (cherry picked from commit 8ed5170c66ec4914e90c2f3657227ceb9e35193f) --- tests/sys/netpfil/pf/sctp.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/sys/netpfil/pf/sctp.sh b/tests/sys/netpfil/pf/sctp.sh index c6dba1719d00..c3e1301238b0 100644 --- a/tests/sys/netpfil/pf/sctp.sh +++ b/tests/sys/netpfil/pf/sctp.sh @@ -656,6 +656,37 @@ pfsync_cleanup() pfsynct_cleanup } +atf_test_case "timeout" "cleanup" +timeout_head() +{ + atf_set descr 'Test setting and retrieving timeout values' + atf_set require.user root +} + +timeout_body() +{ + sctp_init +} + +timeout_cleanup() +{ + pft_cleanup + + vnet_mkjail timeout + + pft_set_rules timeout \ + "set timeout sctp.first 13" \ + "set timeout sctp.opening 14" + + atf_check -s exit:0 -o match:"sctp.first.*13" \ + jexec timeout pfctl -st + atf_check -s exit:0 -o match:"sctp.opening.*14" \ + jexec timeout pfctl -st + # We've not changed other timeouts + atf_check -s exit:0 -o match:"sctp.established.*86400" \ + jexec timeout pfctl -st +} + atf_init_test_cases() { atf_add_test_case "basic_v4" @@ -666,4 +697,5 @@ atf_init_test_cases() atf_add_test_case "nat_v6" atf_add_test_case "rdr_v4" atf_add_test_case "pfsync" + atf_add_test_case "timeout" }