★ wanayoo — archive 1999 http://www.kernelnotes.org/patch/21-p0710.htmlNouvelle recherche | Portail wanayoo

IPIP dropping packets

David Woodhouse (D.W.Woodhouse@nortel.co.uk)
Tue Jul 29 17:51:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]

21-ipip-packet-drop-47.patch
With reference to the question "Is it draconic?" on line 89 of net/ipv4/ipip.c: YES. (IMHO)

If I understand it correctly, it's discarding packets unless the local IP address of the tunnel device is equal to the local address of the port on which the encapsulated packets arrive. If you're using tunnelling to provide a public network service over private IP addresses, or vice versa, that's not particularly useful. Perhaps the call to ip_dev_find_tunnel should use the source address of the incoming packet (compared against the ptp address of the tunl device), but the destination address of the _encapsulated_ packet (compared against the local address of the tunl device)? Even this wouldn't do if packets for other than the local machine are being received over the tunnel.

Either way, it would have saved me a lot of time if I'd been able to find this behaviour explained in the documentation.

The following patch will return to the old behaviour by default, but if you define CONFIG_IP_DRACONIAN, it'll at least warn you that it's dropping the packets and not just broken. I suppose there ought to be a limit on the frequency with which it complains, to prevent a DOS attack, but...




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.