[NETPOLL]: make arp replies through netpoll use mac address of sender
commit47bbec0282cce900f16a8dd6397260e076400edb
authorNeil Horman <nhorman@tuxdriver.com>
Fri, 8 Dec 2006 08:05:55 +0000 (8 00:05 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 9 Dec 2006 01:19:28 +0000 (8 17:19 -0800)
tree981afee17e1aa412bf3c02770437beaa43e9c079
parente07bca84cd9d31f76ed655d51e68b6a0ca15f162
[NETPOLL]: make arp replies through netpoll use mac address of sender

Back in 2.4 arp requests that were recevied by netpoll were processed
in netconsole_receive_skb, where they were responded to using the src
mac of the request sender.  In the 2.6 kernel arp_reply is responsible
for this function, but instead of using the src mac address of the
incomming request, the stored mac address that was registered for the
netconsole application is used.  While this is usually ok, it can lead
to failures in netpoll in some situations (specifically situations
where a network may have two gateways, as arp requests from one may be
responded to using the mac address of the other).  This patch reverts
the behavior to what we had in 2.4, in which all arp requests are sent
back using the src address of the request sender.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Chris Lalancette <clalance@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c