From owner-freebsd-bugs Fri Apr 26 7:40:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BE75B37B41A for ; Fri, 26 Apr 2002 07:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3QEe1N27783; Fri, 26 Apr 2002 07:40:01 -0700 (PDT) (envelope-from gnats) Received: from wolf.tamu.edu (wolf.tamu.edu [128.194.177.13]) by hub.freebsd.org (Postfix) with ESMTP id 1F2F837B400 for ; Fri, 26 Apr 2002 07:37:46 -0700 (PDT) Received: (from daved@localhost) by wolf.tamu.edu (8.11.6/8.11.6) id g3QEbj302031; Fri, 26 Apr 2002 09:37:45 -0500 (CDT) (envelope-from daved) Message-Id: <200204261437.g3QEbj302031@wolf.tamu.edu> Date: Fri, 26 Apr 2002 09:37:45 -0500 (CDT) From: David J Duchscher Reply-To: David J Duchscher To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/37486: Bug in network stack in sending broadcast packets Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37486 >Category: kern >Synopsis: Bug in network stack in sending broadcast packets >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: Fri Apr 26 07:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: David J Duchscher >Release: FreeBSD 4.5-STABLE i386 >Organization: Texas A&M University >Environment: System: FreeBSD wolf.tamu.edu 4.5-STABLE FreeBSD 4.5-STABLE #3: Thu Apr 18 16:15:06 CDT 2002 root@wolf.tamu.edu:/usr/obj/usr/src/sys/CUSTOM i386 >Description: Found that after using ifconfig to reconfigure the interface, all ones broadcast (255.255.255.255) can be sent. Before being reconfigured, the all ones broadcasts would be converted to a subnet broadcast which I believe is the desired behavior. >How-To-Repeat: Just reconfigure the interface and you will be able to send all ones broadcast packets. You do not have to change the configuration of the interface, just issuing an ifconfig with the same settings will work. The steps I took on reconfiguring the interface where: ifconfig fxp0 inet 10.1.4.1 broadcast 255.255.255.0 add route default 10.1.4.1 I used the following perl code to send the broadcast packets: use IO::Socket; $sock = new IO::Socket::INET ( LocalPort => 10000, Proto => 'udp'); $sock->sockopt(SO_BROADCAST, 1); $dest = sockaddr_in(10000, inet_aton("255.255.255.255")); $sock->send("weeee", undef, $dest); Used tcpdump to on same machine and another machine to confirm. I have not found a way return to the behavior of sending out subnet broadcast packets besides the obvious reboot. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message