]> git.dujemihanovic.xyz Git - linux.git/commit
ip6_tunnel: Match to ARPHRD_TUNNEL6 for dev type
authorSheena Mira-ato <sheena.mira-ato@alliedtelesis.co.nz>
Mon, 1 Apr 2019 00:04:42 +0000 (13:04 +1300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2019 20:19:34 +0000 (13:19 -0700)
commitb2e54b09a3d29c4db883b920274ca8dca4d9f04d
tree50fd48490dad00e9045971f284ace876a87d1387
parent1d3ff0950e2b40dc861b1739029649d03f591820
ip6_tunnel: Match to ARPHRD_TUNNEL6 for dev type

The device type for ip6 tunnels is set to
ARPHRD_TUNNEL6. However, the ip4ip6_err function
is expecting the device type of the tunnel to be
ARPHRD_TUNNEL.  Since the device types do not
match, the function exits and the ICMP error
packet is not sent to the originating host. Note
that the device type for IPv4 tunnels is set to
ARPHRD_TUNNEL.

Fix is to expect a tunnel device type of
ARPHRD_TUNNEL6 instead.  Now the tunnel device
type matches and the ICMP error packet is sent
to the originating host.

Signed-off-by: Sheena Mira-ato <sheena.mira-ato@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c