From nobody Thu Jul 25 13:41:48 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 4WVBrD5702z5S4kq; 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 4WVBrD2wWSz4RqK; 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=1eoVKkVQM+SicojnyXaauJZpYjeE5yEMFSVsWt9TS1U=; b=yVng8l0OzjCZUFdJ3dbqHjIPPjnOEGy4hFLLY9jIaNGQ8IXRkTR1qbAQDpxsLt+APvrDOi to2o3Ea+HznbahYn6fC417ph5YZ1xNAUuHR8N968pGc2pVZFli/DEPDKkhheFR4gjuhAOa RpS/sy6q5WrCx/GuObUQPYzhrHU6TyYh32MbWNFj3sx7fduZ0Lo6Km2X8HrjIL/elsuOhP bCv3aIjhTKeIqIN6ILSSCMTLOP/mVRVnDBwoExJ/dXRk+wavxWQQYzgbFKOMVAOLcp+90b HRV9A3cdWkjfspIKOUtcbO7sZ4Azk6ENxS9v+ElnqnwQ4+W8EsPp2+u16CFoKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721914908; a=rsa-sha256; cv=none; b=UcvSkhB8YkTXdp/R7Ivt4p9WyZWoILp17L65hVhWPPNgGsruvFIMFYxytT+qwtJ9X1zW3h r7IvnLacfYkmGlaNkB4npTIgpgU9mcDwtuISybaggeiFjF2cNaE3LGN0llng9fkE+bmfWT zUpYW8n6DHerAiHyerYqCunHsIh/tIp6F/vWfpFZwzYPXkkPu9z3ctuVdwxt3zWsplWArw TOqepjys2s5d5SAvHgpSPDeU05z01WSDYH6Wggd5DGkeG62aff6htT5JdGjM3uO7ON78c2 lsz+HshPEVwNfN8IUZUQinC6GVrnukWdiNBwBC7QX0/w8OM1n296nnPgaDI+KA== 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=1eoVKkVQM+SicojnyXaauJZpYjeE5yEMFSVsWt9TS1U=; b=wZ/z+VCY9tLsI4bfUoN6R4s8Awe2IciHR1/BBZ1x7CzptkCae6c8ezc7Br+R1DeTTovGTG w4BkHBGQ776jJmGVZSU3tW8/5uLzSVppA03V2DD4mc8TWCNUUfgkdANoizCap+LHvB+VfK /1Cb80Jbg++Gks+CzY2hz1u8yEqeeVkJKNgtsOAwo5PFkc6ueA5xWRGZs4U4o5yCO48sSj WUSkdSIVK//rXlAYQOniCwp8JQKvktxlhFYWNbbR+zhJl+anZgLpE4YlMTXdOqST67Ep0g FqTWMyNhDvTE6oBWdoIjPU7es9hXSVIw0h2EvxOXqWEdLYGCfx3C5d/4X4SZQw== 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 4WVBrD2PFSzxXv; Thu, 25 Jul 2024 13:41:48 +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 46PDfmsZ044501; Thu, 25 Jul 2024 13:41:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46PDfmCQ044498; Thu, 25 Jul 2024 13:41:48 GMT (envelope-from git) Date: Thu, 25 Jul 2024 13:41:48 GMT Message-Id: <202407251341.46PDfmCQ044498@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: 5acd8ff56604 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 5acd8ff56604d1a4263c3775d14024fa055c52f8 Auto-Submitted: auto-generated The branch stable/14 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=5acd8ff56604d1a4263c3775d14024fa055c52f8 commit 5acd8ff56604d1a4263c3775d14024fa055c52f8 Author: Kristof Provost AuthorDate: 2024-06-06 15:50:42 +0000 Commit: Kristof Provost CommitDate: 2024-07-25 08:23:29 +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" }