From: Daniel Brockman <daniel@brockman.se>
To: linux-kernel@vger.kernel.org
Subject: Where do packets sent to 255.255.255.255 go?
Date: Thu, 25 Aug 2005 03:02:26 +0200 [thread overview]
Message-ID: <87ek8isual.fsf@wigwam.deepwood.net> (raw)
Hi list,
If I understand correctly, packets sent to the all-ones
broadcast address only go out through a single interface.
My question is threefold:
1. Why doesn't Linux send 255.255.255.255 packages through
all network interfaces? (I realize that this is
probably not a Linux-specific question.)
2. How does it choose which interface to send through?
My first guess was that it just took the first Ethernet
interface and used that for broadcasting. But playing
around with nameif, this seems not to be the case.
3. Can I set the default broadcast interface explicitly?
For example, say I wanted broadcasts to go out over eth1
by default, instead of over eth0. What if I wanted them
to get sent through tap0?
Yes, I know that what I *should* be doing is just send the
packages to the broadcast address specific to the network
where I want them to go. (That is, I should be sending them
to 10.255.255.255 instead of 255.255.255.255 if I want them
to be broadcast to the 10.0.0.0 network.)
Unfortunately, this is not a viable option in my case, as
I'm dealing with a closed-source application that
unconditionally sends broadcasts to 255.255.255.255.
Ideally, the application would let me choose which interface
to broadcast to, but alas it does not.
I've tried searching for a solution to this problem on the
web and on IRC with no luck, so now I'm turning to you guys.
Thanks in advance,
--
Daniel Brockman <daniel@brockman.se>
next reply other threads:[~2005-08-25 1:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-25 1:02 Daniel Brockman [this message]
2005-08-25 8:17 ` Where do packets sent to 255.255.255.255 go? Eric Piel
2005-08-25 10:01 ` Daniel Brockman
-- strict thread matches above, loose matches on Subject: below --
2005-09-19 5:35 PATCH: Fix race in cpu_down (hotplug cpu) Nigel Cunningham
2005-09-19 7:43 ` Where do packets sent to 255.255.255.255 go? Wei-Che, Hsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ek8isual.fsf@wigwam.deepwood.net \
--to=daniel@brockman.se \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.