broadcast udp packets ...

Sreekanth sreekanth at redlinenetworks.com
Fri Jul 11 14:21:42 PDT 2003


Couldn't it be done just by executing the following command ?
#route add 255.255.255.255 -net 255.255.255.255 -ifp [primary interface]

I know it is kind of crude but it works in my case :-)

Sreekanth


> -----Original Message-----
> From: owner-freebsd-net at freebsd.org 
> [mailto:owner-freebsd-net at freebsd.org] On Behalf Of Don Lewis
> Sent: Friday, July 11, 2003 2:10 PM
> To: wes at softweyr.com
> Cc: mgrooms at shrew.net; freebsd-net at freebsd.org
> Subject: Re: broadcast udp packets ...
> 
> 
> On 11 Jul, Wes Peters wrote:
> 
> 
> > What we observed on our embedded system is the packet gets 
> sent on all
> > attached interfaces, with dest IP 255.255.255.255, and a 
> src IP of the 
> > local address that has the default route.  If there isn't a default 
> > route, sending to 255.255.255.255 fails with "no route to host."
> > 
> > This is bogus, so I propose to change it to a special case, where
> > packets sent to 255.255.255.255 will be sent on each attached 
> > interface, with src IP of the interface "primary" address.  
> Does this 
> > sound reasonable?  Should it work without a default route?  
> (I think it 
> > should, the special case of the all-call broadcast 
> shouldn't even go 
> > into rtalloc.)
> 
> This sounds good.  I think it should work without a default 
> route. _______________________________________________
> freebsd-net at freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/free> bsd-net
> To 
> unsubscribe, send any mail to 
> "freebsd-net-unsubscribe at freebsd.org"
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.495 / Virus Database: 294 - Release Date: 6/30/2003
>  
> 



More information about the freebsd-net mailing list