From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 3 15:40:29 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5206A16A403 for ; Tue, 3 Oct 2006 15:40:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 802DD43D46 for ; Tue, 3 Oct 2006 15:40:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k93FeMwO063153 for ; Tue, 3 Oct 2006 15:40:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k93FeMYl063152; Tue, 3 Oct 2006 15:40:22 GMT (envelope-from gnats) Resent-Date: Tue, 3 Oct 2006 15:40:22 GMT Resent-Message-Id: <200610031540.k93FeMYl063152@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, DEVILLE Damien Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C79E316A40F for ; Tue, 3 Oct 2006 15:39:10 +0000 (UTC) (envelope-from yvan.vanhullebus@netasq.com) Received: from netasq.netasq.com (netasq.netasq.com [213.30.137.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62C3643D67 for ; Tue, 3 Oct 2006 15:39:10 +0000 (GMT) (envelope-from yvan.vanhullebus@netasq.com) Received: from [10.2.0.2] (unknown [10.0.0.126]) by netasq.netasq.com (Postfix) with ESMTP id 65D504DBA7 for ; Tue, 3 Oct 2006 17:39:06 +0200 (CEST) Received: by darkstar.netasq.com (Postfix, from userid 1001) id EA618F74B8; Tue, 3 Oct 2006 17:39:12 +0200 (CEST) Message-Id: <20061003153912.EA618F74B8@darkstar.netasq.com> Date: Tue, 3 Oct 2006 17:39:12 +0200 (CEST) From: DEVILLE Damien To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/103950: Broadcast packets are not forwarded X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: DEVILLE Damien List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 15:40:29 -0000 >Number: 103950 >Category: kern >Synopsis: Broadcast packets are not forwarded >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 03 15:40:22 GMT 2006 >Closed-Date: >Last-Modified: >Originator: DEVILLE Damien >Release: FreeBSD 6.1-STABLE i386 >Organization: NETASQ >Environment: System: FreeBSD darkstar.netasq.com 6.1-STABLE FreeBSD 6.1-STABLE #1: Thu May 11 11:43:31 CEST 2006 vanhu@darkstar.netasq.com:/home/vanhu/work/FreeBSD/src-RELENG6/sys/i386/compile/GENERIC.IPSEC i386 >Description: On a FreeBSD gate, broadcasts received on an interface with a destination belonging to another interface are not correctly forwarded because IP_ALLOWBROADCAST is not set in ip_output() call from ip_forward(). >How-To-Repeat: Set up a gate with 2 NICs (for example 192.168.1.0/24 and 192.168.2.0/24). >From a host on 192.168.1.0/24, do a ping to 192.168.2.255. The packet will go through ip_forward(), but will be dropped in ip_output(). >Fix: --- sys/netinet/ip_input.c.orig Fri Sep 29 11:35:14 2006 +++ sys/netinet/ip_input.c Fri Sep 29 11:35:22 2006 @@ -2006,7 +2006,7 @@ RTFREE(rt); } - error = ip_output(m, NULL, NULL, IP_FORWARDING, NULL, NULL); + error = ip_output(m, NULL, NULL, IP_FORWARDING|IP_ALLOWBROADCAST, NULL, NULL); if (error) ipstat.ips_cantforward++; else { >Release-Note: >Audit-Trail: >Unformatted: