OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:34:06 +0000 (16:34 -0800)
commit1831cd9e1fb43c2e700e795827cb9531e679b0ef
tree3af21343e186a1ef457d9c1df45b9fc80a294db6
parentdbde1bae2933018c576abcc28daf082fcd17c8d3
net: Don't proxy arp respond if iif == rt->dst.dev if private VLAN is disabled

[ Upstream commit 70620c46ac2b45c24b0f22002fdf5ddd1f7daf81 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/arp.c