Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2002 09:37:45 -0500 (CDT)
From:      David J Duchscher <daved@tamu.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/37486: Bug in network stack in sending broadcast packets
Message-ID:  <200204261437.g3QEbj302031@wolf.tamu.edu>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204261437.g3QEbj302031>