From owner-freebsd-bugs Mon Apr 29 2:52: 7 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 02D6137B425 for ; Mon, 29 Apr 2002 02:50:21 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3T9oKn16536; Mon, 29 Apr 2002 02:50:20 -0700 (PDT) (envelope-from gnats) Date: Mon, 29 Apr 2002 02:50:20 -0700 (PDT) Message-Id: <200204290950.g3T9oKn16536@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: David J Duchscher Subject: kern/37486: Bug in network stack in sending broadcast packets Reply-To: David J Duchscher 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 The following reply was made to PR kern/37486; it has been noted by GNATS. From: David J Duchscher To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: kern/37486: Bug in network stack in sending broadcast packets Date: Fri, 26 Apr 2002 09:37:45 -0500 (CDT) >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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message