sit: Use ipip6_tunnel_init as the ndo_init function.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 3 Nov 2014 08:19:29 +0000 (09:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2014 20:42:24 +0000 (15:42 -0500)
commitebe084aafb7e93adf210e80043c9f69adf56820d
tree53f5a442d023ca0aeb8cc0a4727039bed3d096a2
parent16a0231bf7dc3fb37e9b1f1cb1a277dc220b5c5e
sit: Use ipip6_tunnel_init as the ndo_init function.

ipip6_tunnel_init() sets the dev->iflink via a call to
ipip6_tunnel_bind_dev(). After that, register_netdevice()
sets dev->iflink = -1. So we loose the iflink configuration
for ipv6 tunnels. Fix this by using ipip6_tunnel_init() as the
ndo_init function. Then ipip6_tunnel_init() is called after
dev->iflink is set to -1 from register_netdevice().

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c