aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/bpf_flow.c
diff options
context:
space:
mode:
authorSheena Mira-ato <sheena.mira-ato@alliedtelesis.co.nz>2019-04-01 13:04:42 +1300
committerDavid S. Miller <davem@davemloft.net>2019-04-02 13:19:34 -0700
commitb2e54b09a3d29c4db883b920274ca8dca4d9f04d (patch)
tree50fd48490dad00e9045971f284ace876a87d1387 /tools/testing/selftests/bpf/progs/bpf_flow.c
parentdccp: Fix memleak in __feat_register_sp (diff)
downloadlinux-dev-b2e54b09a3d29c4db883b920274ca8dca4d9f04d.tar.xz
linux-dev-b2e54b09a3d29c4db883b920274ca8dca4d9f04d.zip
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>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_flow.c')
0 files changed, 0 insertions, 0 deletions