From nobody Tue Dec 17 10:08:03 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 4YCCDg69rRz5h0tR; Tue, 17 Dec 2024 10:08:03 +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 4YCCDg4Dzwz49tS; Tue, 17 Dec 2024 10:08:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734430083; 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=KZJ/Jg4/ZvIlRR3iHbl6uV8Ns7N7d/syds5wQrrglVA=; b=WOatX47kPfqu2XtGpBDtM+mrNrEFd9lGAwIQ3a0LNAjGc8ngKwJqHWBJY27o0GIe4dYJf3 6FNTYY81iR/UBhOA67QDJkVzpmd09Fuguo0fvgTPZyVHnMtOnDBORLgODJ480e9YNdqaRE U24zXjuwwj5/33TOrdI3htFJPTqbhFtR+XQqMglTkeMhOOt+PQn/WLUyP330w27KzC8eCn AwqNRQHMfp2/XX8IHIPr0bKc0IMIRhQQyPR8cZWeTOy1+lrSFINO//AMBIqsjTwP1wjtBb ja4Ny3ffQ2+MIKva80lwedPwHSaR9c6M2FS7PVC9ueSU9PVZOKg/iFCzJSOAGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734430083; 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=KZJ/Jg4/ZvIlRR3iHbl6uV8Ns7N7d/syds5wQrrglVA=; b=i/B5x3B0aKIPS/Se7Xu+lRjDdErg2XXjgfOYLji4v70J7oH3DyJhNKvdLWP8e5qAmWxndp Pxo1sjdAnN1DUD4vR2KwcFJpEqvNVMvmJGzmcWavbH1vTKYASt4ACon57iklNRqz3fbxyY oR5HCz5TkRjmc76Krv6NSEbQ0OvcVrEbG/+f+SVoVobAkqGI1XxYIOmuVZqV6mhjL9PoP3 oZ38MfhsY7zXnMWy1a8BGXcYkWiEkc46htnPIgEsMEQGHtOG7MIYqzoYjT07bEmpKgIYgJ pUZ6ymfWkCj2d5WJ95p2g/c49XXPkzcsC45RTVuWeNPJZZJLGvXy1tgvxiTV0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734430083; a=rsa-sha256; cv=none; b=qIPzzwaRZVoxsTU4z6QDrBjfOh3MA8JYRM0yMvWYdO1BAb7WhQwUz8ussDdZ9ZWNjFLNi9 xrU60+qbQ0Jax8BgIPuh7Stvmq6Q3Z7r+Gr9aAek/5wENVi+H86kGGfUrFuUz2jXxod+z5 tGaZbyzBHysMD+ZvuoebRXO3g/mnfTESfJOUEY1BDxFehkZOBSe/V7CXesVWxzkestx7CN 1Y5wzc/N9xK/nX8wPw3KBrLyXiCbXrO14WHpHcLe4ftTOwKUMpBgeZxT8ESabawvB45mU5 eUYye2Y0WSm+mMOkDaUHOO/QGLrhUYNWl5k5jxIvxmEwO/a9EH6Hk0BUScQ6CA== 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 4YCCDg3qrCzJv2; Tue, 17 Dec 2024 10:08:03 +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 4BHA83q9024420; Tue, 17 Dec 2024 10:08:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BHA83xA024417; Tue, 17 Dec 2024 10:08:03 GMT (envelope-from git) Date: Tue, 17 Dec 2024 10:08:03 GMT Message-Id: <202412171008.4BHA83xA024417@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: b717c67686c0 - main - pf tests: verify that we preserve the hop limit/TTL for ICMP errors 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: b717c67686c090ee0f0034dc33a860f23c10f7fe Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=b717c67686c090ee0f0034dc33a860f23c10f7fe commit b717c67686c090ee0f0034dc33a860f23c10f7fe Author: Kristof Provost AuthorDate: 2024-11-18 11:16:18 +0000 Commit: Kristof Provost CommitDate: 2024-12-17 10:07:16 +0000 pf tests: verify that we preserve the hop limit/TTL for ICMP errors Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D47802 --- tests/sys/netpfil/pf/nat64.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/sys/netpfil/pf/nat64.py b/tests/sys/netpfil/pf/nat64.py index 12793662c171..eeddd5118168 100644 --- a/tests/sys/netpfil/pf/nat64.py +++ b/tests/sys/netpfil/pf/nat64.py @@ -40,6 +40,7 @@ class TestNAT64(VnetTestTemplate): def vnet3_handler(self, vnet): ToolsHelper.print_output("/sbin/sysctl net.inet.ip.forwarding=1") + ToolsHelper.print_output("/sbin/sysctl net.inet.ip.ttl=62") ToolsHelper.print_output("echo foo | nc -l 1234 &") def vnet2_handler(self, vnet): @@ -125,3 +126,7 @@ class TestNAT64(VnetTestTemplate): udp = reply.getlayer(sp.UDPerror) assert udp assert udp.dport == 1222 + + # Check the hop limit + ip6 = reply.getlayer(sp.IPv6) + assert ip6.hlim == 62