[PATCH] sit.c

From: Lukasz Trabinski
Date: Mon Oct 25 2004 - 13:48:44 EST


Hello

Patch based on ipip.c and ip6_tunnel.c

diff -Nru linux-2.6.9.org/net/ipv6/sit.c linux-2.6.9/net/ipv6/sit.c
--- linux-2.6.9.org/net/ipv6/sit.c 2004-10-18 23:55:18.000000000
+0200
+++ linux-2.6.9/net/ipv6/sit.c 2004-10-25 17:42:47.000000000 +0200
@@ -796,7 +796,10 @@

void __exit sit_cleanup(void)
{
- inet_del_protocol(&sit_protocol, IPPROTO_IPV6);
+
+ if (inet_del_protocol(&sit_protocol, IPPROTO_IPV6) <0)
+ printk(KERN_INFO "sit close: can't remove protocol\n");
+
unregister_netdev(ipip6_fb_tunnel_dev);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/