lkml.org 
[lkml]   [1999]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: why broadcast on *.0 (network) addresses ?
Date
On Fri, 29 Jan 1999, Martijn van Oosterhout wrote:

>Forgive me if I'm ignorant, but shouldn't the kernel send a broadcast
>only if the IP matches the configured broadcast address?
>
>Or is the configured broadcast address ignored, or is .0 always
>a broadcast?

The usual algorithm is:

if (ip == broadcast || (ip & ~netmask) == 0)
use broadcast hardware address;
else
use interface hardware address;

The second part of the "or" is for compatibility.

Leo Mauro
Principal Scientist
TeleSys Technologies, Inc.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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