Messages in this thread | | | From | Leo Mauro <> | Subject | Re: why broadcast on *.0 (network) addresses ? | Date | Fri, 29 Jan 1999 12:55:20 -0400 |
| |
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/
| |