From nobody Thu Jun 06 20:40:37 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 4VwGS541hkz5MwnW; Thu, 06 Jun 2024 20:40:37 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VwGS52Wjxz4nq8; Thu, 6 Jun 2024 20:40:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717706437; 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=F3KMmmtqT+6sr21ha6J85NhUnQERN3RDL1oPHMVougQ=; b=bBb0kETG7IifTKAhvjSxZUi0hG945bDCrhgjhLkEUYl8/kyksvAVCiD/cDeXNFeC7OMi2i dsuvYjIqBQUslO3E/34haVb4o6LQHYCN/syFieOmZrcLq/7nJgmbhH7+TJkdjXW21zeemm 7eWY+L+iJRKCX0QostFS5/rR8d/4fztPIuNEIXtf8zfkWhAkZrM+D5I5KXEV0tMMBA5fIK q4Pf6TMI+ZMoqbwWMCLRCqphIsvDggeP5jsjKJHy99Mz/MfYyxi55QBDwUHc6uSa3J49tr oi37Tj6dbtRM5dyyOVNBEWizGtOEmANvxA+g3swktsSII9x2A6cj5y8mpeKQLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717706437; a=rsa-sha256; cv=none; b=F3x5JjGtaAyfNH630aZdvIjZmAsbpYO/jNNfyZppw3jUopintmVSnCv9KK0ZQltHytpyf/ T23ehS8hWRmMHLQVJ5WDL/5xqOgDU59OMAi2y1Fs2Bc4ys8vGqIzaUSlyzjc8peFTdTLAw R04VaDIrJZDpbWP6eoWXSsXebB9boc1pys2zen29uqcelEuOt6xSETmE29htxksZhqgU7X vWrJuv7KXPb9ApdzYZ+tPNfqjo/A0EC7JTGYKwLihKszYS5lNwGOu3CwfncecbA1F8C2CF hnkJDDmLZ+j6KlP4vCp8QnLjCxY1reP3vgE2QWMSEgQrLnOyUq4xH4RTJPoMOw== 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=1717706437; 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=F3KMmmtqT+6sr21ha6J85NhUnQERN3RDL1oPHMVougQ=; b=VnyL9NYs+cGT9k7rp3/4187vYtLtL00VqWJ+7bYbKjEmra5BOpG92uYwVpeCiDz2QZWbHV hp5kdUdOkkzLnj70CvwqISxhetgXYjetS0mDkJvXs03MmcKuBby5D6DbXWuQY5WUZ4kbrx b92y/FNLJTa33hVLQmgmCUnKhqFkudIrbve5O9Kh9U+6UI87NeHnwa2Rw2O8ce3vNhSvsQ YP0XzTUzKWi6YqsLLs0tEbrJvBexyIoU2mTO6pzlskBP/lLI3JGJJMR+NYmZjlvO7xVf5R aAmw31rUcugkZde4tgU8hEYGOEHXWHS//6uuoJYDw8BrN4IVcLV33Ay/UFXjEw== 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 4VwGS526ywz11Gx; Thu, 6 Jun 2024 20:40:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 456KebFB039932; Thu, 6 Jun 2024 20:40:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 456KebHm039929; Thu, 6 Jun 2024 20:40:37 GMT (envelope-from git) Date: Thu, 6 Jun 2024 20:40:37 GMT Message-Id: <202406062040.456KebHm039929@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 8ed5170c66ec - main - 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/main X-Git-Reftype: branch X-Git-Commit: 8ed5170c66ec4914e90c2f3657227ceb9e35193f Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=8ed5170c66ec4914e90c2f3657227ceb9e35193f commit 8ed5170c66ec4914e90c2f3657227ceb9e35193f Author: Kristof Provost AuthorDate: 2024-06-06 15:50:42 +0000 Commit: Kristof Provost CommitDate: 2024-06-06 18:46:19 +0000 pf tests: test setting and retrieving timeout values --- 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" }