Skip to content
Commit 2e9526b3 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Acked-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Tested-by: default avatarNathan Neulinger <nneul@mst.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 33cb7d33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment