Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2886877pxb; Sun, 28 Feb 2021 17:20:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMIulhMZLav05G/FQMnj7q0Qm5e+dnWpnWDf6WaEUswl3ci/FwpnolYJIhlLoC0pa7M0ic X-Received: by 2002:aa7:c497:: with SMTP id m23mr9953713edq.74.1614561627451; Sun, 28 Feb 2021 17:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614561627; cv=none; d=google.com; s=arc-20160816; b=A7FA8jO7BWp2FRxabD8agsFOms7LbJuIzjxo1fuCkyKPSRxyC1rUyfzSmH7SGewc2X Anb/Ankxp/Y5Lcb5qotLoCgSlVcSrovPVboCy1KCL5E0/lZf30woz6IMN929l0vTcA2i k0Hh5fz3MVabH3W7pbvfmnwtYZsgdL1ykW6RtG5YNiz3+z3q259iVixCTXKG2L2Y71Nf MguKUjIJudW2cruQXjL+8iQiBH+/l6eBQl11NKVOAs2CkFQ0YDw6WG0E+dmODAFMQhup WRWXAGuCfLQOEbd5motzRQc9mJPqQZ5H+XAzrSth0p4N0Q70aMQc2FVDfzP/xlrM6STx wgDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TjAbNQH/NYykn1brklhYh1K6vaIb607P6QqDXERWPcQ=; b=yhcxORhe+CmoY1Nqbzu4Q3ddHalLpN8iObWUUlHdCAwHGmFWsPv8XYp6S1s4tP7egO T6PGZr+lt2Ak/S5Az4kNaqzsEHKiiZTiqING/is0eOPkfqx0u+79VCSDmIbIKhmV81TA SmnuI2C1lT8vFXmk/+5OV8auFMsuiy90Tn/OjberPtOOofstCntM5/T5ltL6d4sufbVn pHPh8lBsJDdoVoqCEK+DGmiMKUmzd9ZfgU2AOAI72xO2FjGlS9rXdIMB+cnseogBYU56 y8TxlAeFQ/sjmOkgLcPFcSt9C8vigSTmjsW2HccrFA+/ghrawRYI60oV0F1AAEYuKQcy 20ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="cLqV3/DG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lb6si10226410ejc.557.2021.02.28.17.20.05; Sun, 28 Feb 2021 17:20:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="cLqV3/DG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231286AbhB1XxM (ORCPT + 99 others); Sun, 28 Feb 2021 18:53:12 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:35353 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbhB1XxL (ORCPT ); Sun, 28 Feb 2021 18:53:11 -0500 Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 80B63806B7; Mon, 1 Mar 2021 12:52:28 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1614556348; bh=TjAbNQH/NYykn1brklhYh1K6vaIb607P6QqDXERWPcQ=; h=From:To:Cc:Subject:Date; b=cLqV3/DG9pbEyoncZhMnCl8MOw5lfWvZK9RyNodHgjv2SRCUW80xA7leUGqVHh2u2 Gfd3Js9dj9VsTlo/dzHxgl4K1fWDf9/CEGZEtR+TvXrCODAQowQpatouivyippRvEc f8GcEqkjZNsD4lnaApcGUbUkgNwGxDdJoOb6l+HJ6vvM5B1RZggyYMv+1oAXoVQpNS AopIYx8lf+BiLHfhTzZmBoiFuurcPQjKjz0DP3xh6wmVkPm/SeHeUuQs2LiFNHZaLG 4yAmX+pf7yb56agb6etyvYn7j50VX4dJdSdiEJMGbw03yTE1yXyuy+NBZAMmYHOkg1 Xu6R9AWEvQTrg== Received: from smtp (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Mon, 01 Mar 2021 12:52:28 +1300 Received: from henrys-dl.ws.atlnz.lc (henrys-dl.ws.atlnz.lc [10.33.23.26]) by smtp (Postfix) with ESMTP id C9A5F13EF08; Mon, 1 Mar 2021 12:52:38 +1300 (NZDT) Received: by henrys-dl.ws.atlnz.lc (Postfix, from userid 1052) id 5D84E4E19B6; Mon, 1 Mar 2021 12:52:28 +1300 (NZDT) From: Henry Shen To: davem@davemloft.net Cc: yoshfuji@linux-ipv6.org, dsahern@kernel.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, chris.packham@alliedtelesis.co.nz, Henry Shen Subject: [PATCH] net:ipv4: Packet is not forwarded when ingress interface is not configured with bc_forwarding Date: Mon, 1 Mar 2021 12:52:23 +1300 Message-Id: <20210228235224.30445-1-henry.shen@alliedtelesis.co.nz> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=C7uXNjH+ c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=dESyimp9J3IA:10 a=-2i4ktxzaliv6IimGlkA:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow an IPv4 packet with a destination address of broadcast to be forwar= ded=20 if the ingress interface is not configured with bc_forwarding but the egr= ess=20 interface is. This is inline with Cisco's implementation of directed=20 broadcast. Henry Shen (1): net:ipv4: Fix pakcet not forwarded when ingress interface is not configured with bc_forwarding net/ipv4/route.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) --=20 2.30.1