From nobody Tue Dec 17 10:08:06 2024 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 4YCCDl1BRkz5h0rM; Tue, 17 Dec 2024 10:08:07 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YCCDk6Wz7z4BGK; Tue, 17 Dec 2024 10:08:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734430086; 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=U0qF3slTd4ytYApwnV5Mdx1/ouza5PaQydU38tFOg44=; b=akLY8rz1GdBIGwYjE48Ht7i2+yU8ExtcyZ5ytRqG6xRMWXP0Z1yL0+ivlO4zGgz93GnNrw ABmVbCKRP9DaVnb9c+tD27Qj6bk6w6oCTwtrohqm4uTYZA6hu98r5a+RAu3HQFw35tQomk 4nnEMCj9VHeNGeTNef7vv6mJQ4EpHnEOK5rMD0G9/PV0Buxpi3UVJRmm+rLdSvV/oNo7Bx MYZ4OKRAaaH1gUvS4N0cQJijRi4VliFv3lH3ADCg4iBwrxPn6kUTyyl9rKAK6ESrtoniDB f19u1ksk6O/408NYDsJP22PfiRPhMHUl183SKnHTAhZaVu8GckZSlNumTjmirg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734430086; 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=U0qF3slTd4ytYApwnV5Mdx1/ouza5PaQydU38tFOg44=; b=gSTg7FC8+NLPJiboIuNPyDIVf5umksTbcD1YcrbwaWAPb7baYPKTNtKxDHh783OtxKZeqs VU7HOOy8sZVC8uBFFjHg1PcHDf+OoVn5eY85tEPveX3p6Lj7ir8MduU3t7yr9AkpICDn3y i8lfClA8vLvwsW+mqQICMxpc6x2CG6+I65VfZ7MMgX1oOt42e4BMuKeqFH5i+9JgzruMfM oVCb4Yt5sD/MVwLk4viQxPWeUbkNx46wHm4mkLTSU/sZ9OTKs3vARpAJTHWgrLog/jFMja m5mCvSI0N9kOFyhgU0nQId4vueDsr93uBC55l/Xo7U1qRwI8MmR5jU0QtAQoMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734430086; a=rsa-sha256; cv=none; b=SbTYhALx0M/vKGZ+1l/ZgTpJl5lWnhgbiqa2y01iXYhMuxJsU1fnSEnOhSmYk9HeO6hjqH iGPqlaG5ykOSz0yuXWtscC2X38IWXKR+kDgsC/MhFVdLrABPZCua9y/BW9LJtU6lkHoZXY iSbh8Vj81wCYzNgrr6f5a0fHJxEVbj5WIrwiH8KIrBiuOhCJFJPi5Z5P/IUl4G8cdbCKyJ ro9zl7rv6a5jCvOpRtMN4VsEAmta5l+WJ+ZmDkT6o8clAqH1oVDFM6Nob8AHUtQZh/wPye DuCO09loqjUe7lvdl2UGrGQ2aZuMOzTgO6TELsldJXqDeRpvmCSZydmNIpUwSQ== 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 4YCCDk67pTzJVN; Tue, 17 Dec 2024 10:08:06 +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 4BHA86Fh024555; Tue, 17 Dec 2024 10:08:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BHA86KU024552; Tue, 17 Dec 2024 10:08:06 GMT (envelope-from git) Date: Tue, 17 Dec 2024 10:08:06 GMT Message-Id: <202412171008.4BHA86KU024552@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: e128e988a26a - main - pf tests: check packet reassembly with nat64 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: e128e988a26a2c439da6920a5d5839b961542285 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=e128e988a26a2c439da6920a5d5839b961542285 commit e128e988a26a2c439da6920a5d5839b961542285 Author: Kristof Provost AuthorDate: 2024-11-20 16:26:55 +0000 Commit: Kristof Provost CommitDate: 2024-12-17 10:07:16 +0000 pf tests: check packet reassembly with nat64 Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D47805 --- tests/sys/netpfil/pf/nat64.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tests/sys/netpfil/pf/nat64.sh b/tests/sys/netpfil/pf/nat64.sh index 0ae2c0399daf..9e91e95570c1 100644 --- a/tests/sys/netpfil/pf/nat64.sh +++ b/tests/sys/netpfil/pf/nat64.sh @@ -52,6 +52,7 @@ nat64_setup() jexec rtr pfctl -e pft_set_rules rtr \ + "set reassemble yes" \ "set state-policy if-bound" \ "pass in on ${epair}b inet6 from any to 64:ff9b::/96 af-to inet from (${epair_link}a)" } @@ -82,6 +83,33 @@ icmp_echo_cleanup() pft_cleanup } +atf_test_case "fragmentation" "cleanup" +fragmentation_head() +{ + atf_set descr 'Test fragmented packets' + atf_set require.user root +} + +fragmentation_body() +{ + nat64_setup + + atf_check -s exit:0 -o ignore \ + ping6 -c 1 -s 1280 64:ff9b::192.0.2.2 + + atf_check -s exit:0 \ + -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \ + ping6 -c 3 -s 2000 64:ff9b::192.0.2.2 + atf_check -s exit:0 \ + -o match:'3 packets transmitted, 3 packets received, 0.0% packet loss' \ + ping6 -c 3 -s 10000 -b 20000 64:ff9b::192.0.2.2 +} + +fragmentation_cleanup() +{ + pft_cleanup +} + atf_test_case "tcp" "cleanup" tcp_head() { @@ -178,6 +206,7 @@ sctp_cleanup() atf_init_test_cases() { atf_add_test_case "icmp_echo" + atf_add_test_case "fragmentation" atf_add_test_case "tcp" atf_add_test_case "udp" atf_add_test_case "sctp"