diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
commit | d8d9b8f76f22b7a16a83e261e64f89ee611f49df (patch) | |
tree | 3067bc130b80d52808e6390c9fc7fc087ec1e33c /net/ipv6/af_inet6.c | |
parent | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (diff) |
Initial revision
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 0f6bbf4de..1de20e358 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -7,7 +7,7 @@ * * Adapted from linux/net/ipv4/af_inet.c * - * $Id: af_inet6.c,v 1.16 1997/03/18 18:24:26 davem Exp $ + * $Id: af_inet6.c,v 1.18 1997/05/07 09:40:12 davem Exp $ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -34,6 +34,7 @@ #include <linux/interrupt.h> #include <linux/proc_fs.h> #include <linux/stat.h> +#include <linux/init.h> #include <linux/inet.h> #include <linux/netdevice.h> @@ -457,13 +458,27 @@ static struct proc_dir_entry proc_net_sockstat6 = { #endif /* CONFIG_PROC_FS */ #ifdef MODULE +int ipv6_unload(void) +{ + return 0; +} +#endif + +#ifdef MODULE int init_module(void) #else -void inet6_proto_init(struct net_proto *pro) +__initfunc(void inet6_proto_init(struct net_proto *pro)) #endif { struct sk_buff *dummy_skb; +#ifdef MODULE + if (!mod_member_present(&__this_module, can_unload)) + return -EINVAL; + + __this_module.can_unload = &ipv6_unload; +#endif + printk(KERN_INFO "IPv6 v0.2 for NET3.037\n"); if (sizeof(struct ipv6_options) > sizeof(dummy_skb->cb)) |