]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94a66b343df3d5ade0a9daa926fa82c1ba776006
tree1ca143be17f6c1e78b7740c5bb2a4a12b0d059a2
parent50971864309b55dc2cfe03fb059c05f40ff28fe8
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