Subject: Re: Broadcasting to 255.255.255.255
To: Johnny Billquist <bqt@softjar.se>
From: =?ISO-8859-1?Q?Andr=E9?= Wienck <awienck@solnet.ch>
List: netbsd-users
Date: 07/20/2007 08:10:06
--Signature=_Fri__20_Jul_2007_08_10_06_+0200_PiUhnOL6LbkNVhj_
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Salut,

On Fri, 20 Jul 2007 00:39:55 +0200, Johnny Billquist
<bqt@softjar.se> wrote:
> That, of course, depends on if you really want to direct it to a=20
> specific device. If I broadcast to 255.255.255.255, I would expect any=20
> device would be acceptable (possibly with the addition that it be a=20
> device to a medium where broadcasts make sense).

So you'd choose a random device and broadcast out? (lo0 anyone?)

And even broadcasting out all devices is most likely not the right
thing to do. (pppoe0? Or what if more than one device is connected to
the same network segment?)

> If I want a broadcast to go out on a specific device, I can do a=20
> broadcast to that device's network broadcast address.

But what if you want to talk to all hosts on device ath0, regardless of
their network mask?

You can't cover all situations, and you can't even cover one
appropriately. Hence my suggestion that using bpf is the sane way to go
here.

aw
--=20
Andr=E9 Wienck <awienck@solnet.ch>

--Signature=_Fri__20_Jul_2007_08_10_06_+0200_PiUhnOL6LbkNVhj_
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iQIVAwUBRqBRvp7UJeBFtncvAQIlIg//RuxHbNO4G2p9BuKOCWZ7LAA3m2t6bsg2
6rQ762cKmrp/D48A87VgbPocqnJtGrzwT5MdQNBVXxHOmQYwt1OgayngcaSuQry+
vo0WEracsR+xbbZk/Nbh4UzM+CLI6xtwXZwskDbdZDlHvpR8YDTVeth9oJeJzjZZ
38tcGRemhHQX5cccnIVddvkYWUJ0WDjUss0NtyuHH8GSlKSsAnk//wupPHJxKlIx
WEJjZzu0+lflweJzzHenkDZdEPxMNvri6awbwL3IWgTNvMnT7GNxhaE6P4JVSbIj
uTS4XDYICMZI5Wcc0F2BwIXqbUnQK2GOuskk8bCXrOee4xXMpQWqDj035Px7TYuK
01lEU4NE6sK5VDYT8UQDqG6dXaf5rDF0jdzy37Uob1/HGwFq2miuEfBkVVgdN8ZY
TEZ/E2JclR479XXFLK4+QHJeH7YC+L5vNI4/v3tBui/jmbQ+zA87ybETkEMaQFYo
nvFPbgO3mTetyriGlzDkM9kfcMfBIccwXAFTg6hJngwiOse0A9e8V+HJJ83Zg5Vg
PM/v8/+A+Pog3mWyieCR/PvsScsJlnfAeCo8gaViXsVYbJ+Ghxlruomw4KXkeSPd
Ofp4Lo/FlfB53BJ3Y57psSzHlBeUyKfLNIfkawRnjlgjQE35tV1iCmlBl83SlO8A
vAqGS/tAuoE=
=mSAa
-----END PGP SIGNATURE-----

--Signature=_Fri__20_Jul_2007_08_10_06_+0200_PiUhnOL6LbkNVhj_--