gre: strict physical device binding
authorTimo Teras <timo.teras@iki.fi>
Tue, 20 Jan 2009 01:22:12 +0000 (17:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jan 2009 22:34:54 +0000 (14:34 -0800)
commit749c10f931923451a4c59b4435d182aa9ae27a4f
tree1c715c26a58ccdf144f8ff5cd64d7ff5ab1bf36b
parent57a574993d94671b495cdbe8aeb78b745abfe14f
gre: strict physical device binding

Check the device on receive path and allow otherwise identical devices
as long as the physical device differs.

This is useful for NBMA tunnels, where you want to use different gre IP
for each public IP available via different physical devices.

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c