]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: only apply anti-spoofing checks to not-pointopoint tunnels
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Thu, 27 Jun 2013 20:46:04 +0000 (22:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jul 2013 20:26:18 +0000 (13:26 -0700)
commit1d1ccdad7a6d6604687e6628df8601b9d0b5c2f6
tree0cd076a18e55598a819c9358a19865f78ed9d43e
parent294be409cf24d807c905e6eaa4522c38466a2810
ipv6: only apply anti-spoofing checks to not-pointopoint tunnels

Because of commit ceff66afbf6462f727aee637cc19d314a079c0e3 ("ipv6: add
anti-spoofing checks for 6to4 and 6rd") the sit driver dropped packets
for 2002::/16 destinations and sources even when configured to work as a
tunnel with fixed endpoint. We may only apply the 6rd/6to4 anti-spoofing
checks if the device is not in pointopoint mode.

This was an oversight from me in the above commit, sorry.  Thanks to
Roman Mamedov for reporting this!

Reported-by: Roman Mamedov <rm@romanrm.ru>
Cc: David Miller <davem@davemloft.net>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c