[lkml]   [2003]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: [2.4 PATCH] bugfix: ARP respond on all devices
David S. Miller wrote:
> > When a HOST sends out an ARP request, it's NOT associated with a
> > single connection, it's associated with the host. Why
> should it pick a
> > "random" IP number to send as the source address?
> It's not "random", it is using the IP address it intends
> to use as the source in packets it will output once the
> ARP completes.
> In fact, if you look at the code in arp_solicit(), the source address
> is coming directly from the packet we are trying to output.
Which nicely sums up the bug, really.

1) The ARP response (or lack thereof) will be used for more than that
connection, using a single packet's source IP address is meaningless and
just a little aribtrary.

2) Depending on which ARP request or reply gets seen first, packets may get
routed over different interfaces or not sent out at all.

3) The code is over-complex. There must already be perfectly good code to
pick up the interface's IP address as this would HAVE to be the case when a
packet has been routed from another host.

This sort of randomness is not acceptable in a reliable network.

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

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