Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jul 2003 15:01:13 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Matthew Grooms <mgrooms@shrew.net>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: broadcast udp packets ...
Message-ID:  <3F01DA79.4080709@mac.com>
In-Reply-To: <200307011800.h61I0MOW001329@hole.shrew.net>
References:  <200307011800.h61I0MOW001329@hole.shrew.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Grooms wrote:
>      Is there any way to generate a udp broadcast ( all routes
> 255.255.255.255 ) packet using a standard sendto() without it being
> translated into a local network broadcast? Is this just not "allowed"?

Are you trying to use 255.255.255.255 to reach something not on a local subnet?

If you have multiple interfaces, a broadcast to 255.255.255.255 should go out on 
all of them.  That being said, the all-ones broadcast address means "all local 
networks", and most routers will block such traffic from passing on in any event.

-- 
-Chuck



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