[lkml]   [2000]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Rob Landley <> writes:

> --- Jeff Garzik <> wrote:
> > Rob Landley wrote:
> > > Under 2.2.16, broadcast packets addressed to
> > > do not go out to all interfaces in
> > a
> > > machine with multiple network cards. They're
> > getting
> > > routed out the default gateway's interface
> > instead.
> >
> > Are the network cards on the same network?
> Two subnets. (both martians: 10.blah and
> 192.168.blah). Gateway's off of 10.blah (beyond which
> lives the internet), the 192 thing is the small
> cluster I'm putting together in my office to test the
> software.
> I take it this makes a difference? If there's some
> kind of "don't do that" here, I might be happy just
> documenting it. (In theory, I could iterate through
> the NICs and send out a broadcast packet to each
> interface's broadcast address (although for reasons
> that are a bit complicated to go into right now unless
> you really want to know, that's not easy to do in this
> case).) But that's just a workaround to cover up the
> fact that the IP stack isn't doing the obvious with
> global broadcasts.
> So the question is, is the stack's behavior right? If
> not, what's involved in fixing it, and if so, is it
> documented anywhere?

I think historically, BSD stacks were routing to the
"primary interface" (whatever that means).

All the code I've encountered which actually needed to perform
broadcast on all interfaces was sending subnet-directed broadcasts by
hand on all interfaces.

Broadcast is ugly anyways, why don't you use multicast ?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.024 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site