From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15411 invoked by alias); 2 Mar 2012 21:23:35 -0000 Received: (qmail 15389 invoked by uid 22791); 2 Mar 2012 21:23:35 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Mar 2012 21:23:21 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id C21F22FB0827; Fri, 2 Mar 2012 21:23:20 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001508] New: Add freebsd CDL option to allow broadcast packets to be sent to 255.255.255.255 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: TCP/IP X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: grant.b.edwards@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 02 Mar 2012 21:23:00 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg00394.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001508 Summary: Add freebsd CDL option to allow broadcast packets to be sent to 255.255.255.255 Product: eCos Version: CVS Platform: All OS/Version: Other Status: NEW Severity: enhancement Priority: low Component: TCP/IP AssignedTo: unassigned@bugs.ecos.sourceware.org ReportedBy: grant.b.edwards@gmail.com CC: ecos-bugs@ecos.sourceware.org Class: Advice Request For reasons I've never understood, the BSD network stack has historically coerced broadcast packets sent to 255.255.255.255 so that they go out the door destined for the interface's local network broadcast address instead of the specified global broadcast address. IOW, if your network interface is configured as 192.168.100.33/24 and you send a UDP broadcast packet to 255.255.255.255, it will actually be sent with a destination IP of 192.168.100.255. People in the BSD world have been complaining about (and working around) this for ages. The Linux network stack takes the simpler and more useful approach of sending the packet to the destination as specified -- if you send broadcast packet to 255.255.255.255, it goes out to 255.255.255.255, and if you want to send a broadcast packet to 192.100.100.255, then you send it to 192.168.100.255. Several of our eCos based products must implement application protocols that require UDP packets be sent to 255.255.255.255. To accomplish this, I've been using a locally-modified bsd_tcpip stack with a CDL option that allows you to choose either the (IMO broken) BSD behavior or the Linux behavior. It defaults to the BSD behavior for the sake of backwards-compatible brokenness. Anyhow, here's a patch that adds the CDL option CYGOPT_NET_FREEBSD_FORCE_DIRECTED_BROADCAST It defaults to 1 which results in the traditional BSD behavior. Setting it to 0 allows you to send packets to 255.255.255.255 by specifying a destination address of 255.255.255.255. -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.