Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2888078pxb; Sun, 28 Feb 2021 17:22:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoG94oxfiQjfU7rl3UMGSgz/EebVL4kXWbjxAifOQ+sFc218yPGa0MZZw+0rKZ/NIzgvWz X-Received: by 2002:a17:907:20e4:: with SMTP id rh4mr13880637ejb.369.1614561776387; Sun, 28 Feb 2021 17:22:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614561776; cv=none; d=google.com; s=arc-20160816; b=Hv6k1AuHczzGT5pzRcqbe5MUZ0o+xErFd7YMe47ANTBZ3t7Mf15M+kqVRPcxJwMkCH dp7LaSnUvgR7nA2v1Mpyd5whU+vq6xYbIFamQNLVmmM7LUrK0fdLBM8jXUxfQjb17a6o q6fuf168C++Mhmy/pmB4b/YwZmcaVYZY/YTAzqON9oJ7NARGO+k1hiS1Fw6/ebvgEIUs oPIUGkmi5iCOI85ar2TLJkA9LteajtqtNNyzVphSUG1jvjrsQDK/bTbG3dr7qclc073g 63xeZWWCPDZqYSsr95U3beBoe98e6d8MdKkiEvSxi6d6G9xkommoSB9YFiab8+G3dKkw bCRQ== 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=nsz9nJebqYvC9uqb97jSsorLbqN/CpuphGZuxF9jKde1oSGD5s8Bk5VEcTKvm3Gtt1 HBXVYNoILUogtQwLVL44EKW2SqkXIrGOcG4Rpijnxhjs55IRuuTyjTofGhcGCewOJM6l UCWCBkQl5rw8r15NFSHI/xSL6kg8HL+YEptK7pBbMhRjVNPBdojT3sCAT8/xzCjyC/q2 RPRx74JFF4PFkne7uAvSRJPJkGxpvnWUFgPtP2IfObBwMCfrVvRFchTKybpXgWw2nMTE hBwgS5UKZiGMhqiaSGQz5SYjDkgRvhNkFNLsrSE3FQkqNIPuN+4AR16uacdUaBVPHSlA LLvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=INGk5d0W; 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 he18si10411346ejc.699.2021.02.28.17.22.34; Sun, 28 Feb 2021 17:22:56 -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=INGk5d0W; 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 S231430AbhCAAyK (ORCPT + 99 others); Sun, 28 Feb 2021 19:54:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231411AbhCAAyF (ORCPT ); Sun, 28 Feb 2021 19:54:05 -0500 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 704A7C06174A for ; Sun, 28 Feb 2021 16:53:25 -0800 (PST) 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 3594C806B7; Mon, 1 Mar 2021 13:53:21 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1614560001; bh=TjAbNQH/NYykn1brklhYh1K6vaIb607P6QqDXERWPcQ=; h=From:To:Cc:Subject:Date; b=INGk5d0WGqe3owJDYiwv06bFFANjwSK2MdA/+MjKoO5Lj50M6hCGzA+9bZSc8MmUd QpuCwCJ6UbEGM7f08uwO4a6DHCTirwPGwTQVAqTUAjVn8KIuweu8B+SGza6qm9Buur 19PpLvVqbER/08Z4T5AQGRBfi13u3bLkulycVG0hxQ/xMKHjSMtwF4lwdRcflqFlDB McoLXjj6eC9fAN0fuAffMJSK3EJDNgtsij5k3XjhNa+P0GQ2/RhyqMUEar79dVZrvU L2MVCA9GkvzABVG+xCyAYAETBTC0AW+Is6pJMWWjr2E9znyLsyydgB8GIhBsop1e3f U+G2COsPTcraQ== 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 13:53:21 +1300 Received: from henrys-dl.ws.atlnz.lc (henrys-dl.ws.atlnz.lc [10.33.23.26]) by smtp (Postfix) with ESMTP id 7E25C13EF08; Mon, 1 Mar 2021 13:53:31 +1300 (NZDT) Received: by henrys-dl.ws.atlnz.lc (Postfix, from userid 1052) id 0FB734E19B6; Mon, 1 Mar 2021 13:53:21 +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 13:53:17 +1300 Message-Id: <20210301005318.8959-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