net: Don't proxy arp respond if iif == rt->dst.dev if private VLAN is disabled
authorThomas Graf <tgraf@suug.ch>
Fri, 10 Feb 2012 04:07:11 +0000 (04:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2012 20:13:36 +0000 (15:13 -0500)
commit70620c46ac2b45c24b0f22002fdf5ddd1f7daf81
tree1ca143be17f6c1e78b7740c5bb2a4a12b0d059a2
parent5dc7883f2a7c25f8df40d7479687153558cd531b
net: Don't proxy arp respond if iif == rt->dst.dev if private VLAN is disabled

Commit 653241 (net: RFC3069, private VLAN proxy arp support) changed
the behavior of arp proxy to send arp replies back out on the interface
the request came in even if the private VLAN feature is disabled.

Previously we checked rt->dst.dev != skb->dev for in scenarios, when
proxy arp is enabled on for the netdevice and also when individual proxy
neighbour entries have been added.

This patch adds the check back for the pneigh_lookup() scenario.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/arp.c