]> git.baikalelectronics.ru Git - kernel.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)
commitfaa28de07241764a7a13e305dc58ee8517b41d87
tree50fd48490dad00e9045971f284ace876a87d1387
parent08b32109aee52f9e20f4db2c64f536e7eae3d4f5
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