gre: Fix dev_addr clobbering for gretap
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Oct 2009 05:51:48 +0000 (05:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 19:28:07 +0000 (12:28 -0700)
commit2e9526b352061ee0fd2a1580a2e3a5af960dabc4
tree589ae8d9832a929acc68f58cdb8f8b84fb35978e
parent33cb7d33a1c36e07839d08a4d1a33bf6a0f70bba
gre: Fix dev_addr clobbering for gretap

Nathan Neulinger noticed that gretap devices get their MAC address
from the local IP address, which results in invalid MAC addresses
half of the time.

This is because gretap is still using the tunnel netdev ops rather
than the correct tap netdev ops struct.

This patch also fixes changelink to not clobber the MAC address
for the gretap case.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Nathan Neulinger <nneul@mst.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c