From nobody Mon Aug 08 12:46:19 2022 X-Original-To: dev-commits-src-main@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 4M1bY822J9z4XsHJ; Mon, 8 Aug 2022 12:46:20 +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 4M1bY81Pkzz3lfm; Mon, 8 Aug 2022 12:46:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659962780; 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=jsyM8nEBDwY8BFrNJst3C3FcTiSzZkg+8fAiCQX7ceU=; b=XvMBEjXMJ9j/t4LKkuwNUvLlUY4Y0X9V66sYWujCw7bxtMLY1gLcxbwlhEBcYiu2WjPw1m XYLS0WEXBHsIHCq1ROXuHrpsDmgS6bAwYpteqFMQ/VTrbQwX5tWvxQ2Ae4KsQwhSAFi/Ir eB4LHPcY1HFk7UOf8pNKOVsVRN9cEgSwbRn30OO3X0OzWERITpREeXUB2+KJcFBMSDxXgr T1SGAQ0WU0Nxsafjef/74dS/uXG2dvh2TAYasrCQ8PS2bcvMqlrCfMjh0yyCz0IkI0Viy6 E4/ZSnuZD5UQyUPIrn01Er9eaH4eXiwp+UpqARNxK/1jM4FkmdbGrQfTuAlBDw== 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 4M1bY80QG4zrj9; Mon, 8 Aug 2022 12:46:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 278CkJBR079948; Mon, 8 Aug 2022 12:46:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 278CkJ6q079947; Mon, 8 Aug 2022 12:46:19 GMT (envelope-from git) Date: Mon, 8 Aug 2022 12:46:19 GMT Message-Id: <202208081246.278CkJ6q079947@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: 63167eb48c9f - main - pfctl tests: test case for the POM_STICKYADDRESS fix List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 63167eb48c9f275384bae20e9b432ad68f44ff42 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659962780; 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=jsyM8nEBDwY8BFrNJst3C3FcTiSzZkg+8fAiCQX7ceU=; b=gG29N9UaSQPDq3CD+2eCk3ASAQq7tNPfituSlHGrcEWXdHfPq1XW3DZo/sVfk2jLK7v+Pm Y6BIhn1wingOLyrQI2MPfGEhWkNZDiA/ps8KkQTRividUNga4hHpk7bc7OOjW8URBPWz35 VGagspIR8TkNkFs9IRRcWXrrAFSBVb32Ocpdvtx4k/YPMQ65+WLFO2wE8GaNxp9HN/bikz TppJBrXiZ1iJgFMLbp/Afb3FBYX3afjyIrTutd1cb4+nqiG2xn4xoC+f4P7HwGpU4KlwZE uoMxYfnv0nOcHrPTD7ak+wbBvCKJhCHuOe1upVv3MWpaOMFPRATpkeUFq2oDHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659962780; a=rsa-sha256; cv=none; b=wM8vRBK+nTR6mvtwxGlV4bFu/Xf2vAykkNvjoYCDtYUXaljWVAmCOE94tAYwoDnwiAPJHC g+7q3aPPR1FihjF2vud+4CD8jr2PA6o+C0pdl6amKkHGbN0+u1RKCiwzdr9wwai8WqqZsF 5z7gOGGFUYqyhk0WUuLLJbsfVz7apaW+C+r0XGJVaZXBOfyQrNnJsntEjpikCbsFCD+njU VQKywrghToigv06N/f5kVLxyLX3SHQ9hvoyIFlpKB9a1aAFVS/t9/Z/w2g/jdm4R/ykrR8 6NAe5Mi4SvF26qKPCySbSDgcGGYslEIxD7805xIDk6O/hwd0Dmx9Gv72XkNHkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=63167eb48c9f275384bae20e9b432ad68f44ff42 commit 63167eb48c9f275384bae20e9b432ad68f44ff42 Author: Kristof Provost AuthorDate: 2022-08-08 07:30:42 +0000 Commit: Kristof Provost CommitDate: 2022-08-08 07:30:42 +0000 pfctl tests: test case for the POM_STICKYADDRESS fix In 1e73fbd8b we fixed an issue with POM_STICKYADDRESS being checked in the wrong struct. Add a basic test case for this fix. MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/tests/files/pf1010.in | 2 ++ sbin/pfctl/tests/files/pf1010.ok | 2 ++ sbin/pfctl/tests/pfctl_test_list.inc | 1 + 3 files changed, 5 insertions(+) diff --git a/sbin/pfctl/tests/files/pf1010.in b/sbin/pfctl/tests/files/pf1010.in new file mode 100644 index 000000000000..2baf4dc360af --- /dev/null +++ b/sbin/pfctl/tests/files/pf1010.in @@ -0,0 +1,2 @@ +pass inet proto icmp icmp-type {unreach} +pass in route-to (if0 127.0.0.1/8) sticky-address inet diff --git a/sbin/pfctl/tests/files/pf1010.ok b/sbin/pfctl/tests/files/pf1010.ok new file mode 100644 index 000000000000..b960dbfc50b8 --- /dev/null +++ b/sbin/pfctl/tests/files/pf1010.ok @@ -0,0 +1,2 @@ +pass inet proto icmp all icmp-type unreach keep state +pass in route-to (if0 127.0.0.0/8) sticky-address inet all flags S/SA keep state diff --git a/sbin/pfctl/tests/pfctl_test_list.inc b/sbin/pfctl/tests/pfctl_test_list.inc index aa3f625e905f..0b6d5110034d 100644 --- a/sbin/pfctl/tests/pfctl_test_list.inc +++ b/sbin/pfctl/tests/pfctl_test_list.inc @@ -120,3 +120,4 @@ PFCTL_TEST(1006, "pfctl crashes with certain fairq configurations") PFCTL_TEST(1007, "Basic ethernet rule") PFCTL_TEST(1008, "Ethernet rule with mask length") PFCTL_TEST(1009, "Ethernet rule with mask") +PFCTL_TEST(1010, "POM_STICKYADDRESS test")