From nobody Mon Apr 18 09:11:38 2022 X-Original-To: net@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 035DA11DF7A1 for ; Mon, 18 Apr 2022 09:11:41 +0000 (UTC) (envelope-from bugzilla-noreply@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 4Khh585dHgz4t6t for ; Mon, 18 Apr 2022 09:11:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 A20A67CB7 for ; Mon, 18 Apr 2022 09:11:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23I9BeGV013103 for ; Mon, 18 Apr 2022 09:11:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23I9Besm013102 for net@FreeBSD.org; Mon, 18 Apr 2022 09:11:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 255705] Routing does not honor mbuf_tag PACKET_TAG_IPFORWARD correctly Date: Mon, 18 Apr 2022 09:11:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650273100; 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: in-reply-to:in-reply-to:references:references; bh=nRFSH1n8LRN/3l4j8EwEZf7kWHB0y0o+0SMyhgyjlyc=; b=bdHaPbIVkOQ7y3E+ll4DX3Yz2h/gRowuZcueeLZJ3azv/8s3GDxX8w0ouX6597HAedvmzc 7XM3mlJq6z11ZiXsx505T9cOBvZKn38eVuvx/4b0z4kMQzPEk/vynWMMCPnqsEdPMx+vS3 98RnOs8Jbk3HG0CifnBXBcAQ1iommHAI5//OXg6AkvsSNnZIZP35K7m2BD2Kf10iqP20qa v3nl/qsmSY9QUc7J0idgnWjHd1CI2ri/4vB0hXly2+Sm2B/XhQgB9DJFMoehThmFCPqeQ1 cuXBSMw62S5FVqhCmjAO0K/0WO2bGjPCtmjbHDZivciDQv//0xNpPmifRbN6tw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650273100; a=rsa-sha256; cv=none; b=e1VU40l8VkkBmX5J0f6MXs1OAGaS2AXkbeNS8bV/sTHd74uWk1NO9JEAPSZX7lNra70Oeu ITw+024HtJNi3+gTkeBR6+wL1Cm2/Kk3+BH8khUptbtSxwW+t+tBr8B1XDGcrBATyLROba uaqA2dahiTuBd5uXEUVVb4mQpXmxmt9FAcgWfL3UEfrB8vBZibtP4dcqAhA7HgsZvHJUmB 9tAQ5rII+BZrDgEVnrefOdyhP/KI7BjPYEM0WPnMnICZId2GVbZTstGkOSHKTxEQ7nwYKH HP9hfyE40Hy27f4ooysJov+6/h02028vYKkJYH12jr3GYw9dl7tsFzOz0ACDvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255705 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D17c9c2049004038ed6f2dc23a64cb9f74= 411ec52 commit 17c9c2049004038ed6f2dc23a64cb9f74411ec52 Author: Andrey V. Elsukov AuthorDate: 2022-04-01 13:49:25 +0000 Commit: Andrey V. Elsukov CommitDate: 2022-04-18 08:58:45 +0000 Fix ipfw fwd that doesn't work in some cases For IPv4 use dst pointer as destination address in fib4_lookup(). It keeps destination address from IPv4 header and can be changed when PACKET_TAG_IPFORWARD tag was set by packet filter. For IPv6 override destination address with address from dst_sa.sin6_add= r, that was set from PACKET_TAG_IPFORWARD tag. Reviewed by: eugen PR: 256828, 261697, 255705 Differential Revision: https://reviews.freebsd.org/D34732 (cherry picked from commit 7d98cc096b995ca3bfd85277ed009b0f872c3e1b) sys/netinet/ip_output.c | 2 +- sys/netinet6/ip6_output.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=