aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipip.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r--net/ipv4/ipip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index 475bcd1e4181..3ec5ce0f5498 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -96,7 +96,6 @@
96#include <linux/capability.h> 96#include <linux/capability.h>
97#include <linux/module.h> 97#include <linux/module.h>
98#include <linux/types.h> 98#include <linux/types.h>
99#include <linux/sched.h>
100#include <linux/kernel.h> 99#include <linux/kernel.h>
101#include <asm/uaccess.h> 100#include <asm/uaccess.h>
102#include <linux/skbuff.h> 101#include <linux/skbuff.h>
@@ -871,7 +870,7 @@ static int __init ipip_init(void)
871 870
872 printk(banner); 871 printk(banner);
873 872
874 if (xfrm4_tunnel_register(&ipip_handler)) { 873 if (xfrm4_tunnel_register(&ipip_handler, AF_INET)) {
875 printk(KERN_INFO "ipip init: can't register tunnel\n"); 874 printk(KERN_INFO "ipip init: can't register tunnel\n");
876 return -EAGAIN; 875 return -EAGAIN;
877 } 876 }
@@ -893,7 +892,7 @@ static int __init ipip_init(void)
893 err2: 892 err2:
894 free_netdev(ipip_fb_tunnel_dev); 893 free_netdev(ipip_fb_tunnel_dev);
895 err1: 894 err1:
896 xfrm4_tunnel_deregister(&ipip_handler); 895 xfrm4_tunnel_deregister(&ipip_handler, AF_INET);
897 goto out; 896 goto out;
898} 897}
899 898
@@ -913,7 +912,7 @@ static void __exit ipip_destroy_tunnels(void)
913 912
914static void __exit ipip_fini(void) 913static void __exit ipip_fini(void)
915{ 914{
916 if (xfrm4_tunnel_deregister(&ipip_handler)) 915 if (xfrm4_tunnel_deregister(&ipip_handler, AF_INET))
917 printk(KERN_INFO "ipip close: can't deregister tunnel\n"); 916 printk(KERN_INFO "ipip close: can't deregister tunnel\n");
918 917
919 rtnl_lock(); 918 rtnl_lock();