David S. Miller 6c91afe1a9 ipv4: Fix erroneous uses of ifa_address.
In usual cases ifa_address == ifa_local, but in the case where
SIOCSIFDSTADDR sets the destination address on a point-to-point
link, ifa_address gets set to that destination address.

Therefore we should use ifa_local when we want the local interface
address.

There were two cases where the selection was done incorrectly:

1) When devinet_ioctl() does matching, it checks ifa_address even
   though gifconf correct reported ifa_local to the user

2) IN_DEV_ARP_NOTIFY handling sends a gratuitous ARP using
   ifa_address instead of ifa_local.

Reported-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-03-09 13:27:16 -08:00
..
2011-01-24 13:16:16 -08:00
2010-09-23 14:33:39 -07:00
2010-10-25 13:09:45 -07:00
2010-11-18 11:02:23 -08:00
2010-06-28 23:24:29 -07:00
2010-02-22 16:20:22 -08:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2011-02-21 11:31:18 -08:00
2011-02-21 11:31:18 -08:00
2009-05-25 22:44:59 -07:00
2010-09-23 14:33:39 -07:00
2010-10-27 11:37:32 -07:00
2010-07-12 12:57:54 -07:00