Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
af_inet6.c File Reference
#include <linux/module.h>
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
#include <linux/in.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/string.h>
#include <linux/sockios.h>
#include <linux/net.h>
#include <linux/fcntl.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/inet.h>
#include <linux/netdevice.h>
#include <linux/icmpv6.h>
#include <linux/netfilter_ipv6.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include <net/udp.h>
#include <net/udplite.h>
#include <net/tcp.h>
#include <net/ipip.h>
#include <net/protocol.h>
#include <net/inet_common.h>
#include <net/route.h>
#include <net/transp_v6.h>
#include <net/ip6_route.h>
#include <net/addrconf.h>
#include <asm/uaccess.h>
#include <linux/mroute6.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "IPv6: " fmt
 

Functions

 MODULE_AUTHOR ("Cast of dozens")
 
 MODULE_DESCRIPTION ("IPv6 protocol stack for Linux")
 
 MODULE_LICENSE ("GPL")
 
 module_param_named (disable, disable_ipv6_mod, int, 0444)
 
 MODULE_PARM_DESC (disable,"Disable IPv6 module such that it is non-functional")
 
 module_param_named (disable_ipv6, ipv6_defaults.disable_ipv6, int, 0444)
 
 MODULE_PARM_DESC (disable_ipv6,"Disable IPv6 on all interfaces")
 
 module_param_named (autoconf, ipv6_defaults.autoconf, int, 0444)
 
 MODULE_PARM_DESC (autoconf,"Enable IPv6 address autoconfiguration on all interfaces")
 
int inet6_bind (struct socket *sock, struct sockaddr *uaddr, int addr_len)
 
 EXPORT_SYMBOL (inet6_bind)
 
int inet6_release (struct socket *sock)
 
 EXPORT_SYMBOL (inet6_release)
 
void inet6_destroy_sock (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (inet6_destroy_sock)
 
int inet6_getname (struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer)
 
 EXPORT_SYMBOL (inet6_getname)
 
int inet6_ioctl (struct socket *sock, unsigned int cmd, unsigned long arg)
 
 EXPORT_SYMBOL (inet6_ioctl)
 
int inet6_register_protosw (struct inet_protosw *p)
 
 EXPORT_SYMBOL (inet6_register_protosw)
 
void inet6_unregister_protosw (struct inet_protosw *p)
 
 EXPORT_SYMBOL (inet6_unregister_protosw)
 
int inet6_sk_rebuild_header (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (inet6_sk_rebuild_header)
 
bool ipv6_opt_accepted (const struct sock *sk, const struct sk_buff *skb)
 
 EXPORT_SYMBOL_GPL (ipv6_opt_accepted)
 
 module_init (inet6_init)
 
 module_exit (inet6_exit)
 
 MODULE_ALIAS_NETPROTO (PF_INET6)
 

Variables

struct ipv6_params ipv6_defaults
 
struct proto_ops inet6_stream_ops
 
struct proto_ops inet6_dgram_ops
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "IPv6: " fmt

Definition at line 21 of file af_inet6.c.

Function Documentation

EXPORT_SYMBOL ( inet6_bind  )
EXPORT_SYMBOL ( inet6_release  )
EXPORT_SYMBOL ( inet6_getname  )
EXPORT_SYMBOL ( inet6_ioctl  )
EXPORT_SYMBOL ( inet6_register_protosw  )
EXPORT_SYMBOL ( inet6_unregister_protosw  )
EXPORT_SYMBOL_GPL ( inet6_destroy_sock  )
EXPORT_SYMBOL_GPL ( inet6_sk_rebuild_header  )
EXPORT_SYMBOL_GPL ( ipv6_opt_accepted  )
int inet6_bind ( struct socket sock,
struct sockaddr uaddr,
int  addr_len 
)

Definition at line 258 of file af_inet6.c.

void inet6_destroy_sock ( struct sock sk)

Definition at line 413 of file af_inet6.c.

int inet6_getname ( struct socket sock,
struct sockaddr uaddr,
int uaddr_len,
int  peer 
)

Definition at line 444 of file af_inet6.c.

int inet6_ioctl ( struct socket sock,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 480 of file af_inet6.c.

int inet6_register_protosw ( struct inet_protosw p)

Definition at line 570 of file af_inet6.c.

int inet6_release ( struct socket sock)

Definition at line 396 of file af_inet6.c.

int inet6_sk_rebuild_header ( struct sock sk)

Definition at line 642 of file af_inet6.c.

void inet6_unregister_protosw ( struct inet_protosw p)

Definition at line 627 of file af_inet6.c.

bool ipv6_opt_accepted ( const struct sock sk,
const struct sk_buff skb 
)

Definition at line 681 of file af_inet6.c.

MODULE_ALIAS_NETPROTO ( PF_INET6  )
MODULE_AUTHOR ( "Cast of dozens"  )
MODULE_DESCRIPTION ( "IPv6 protocol stack for Linux"  )
module_exit ( inet6_exit  )
module_init ( inet6_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( disable  ,
disable_ipv6_mod  ,
int  ,
0444   
)
module_param_named ( disable_ipv6  ,
ipv6_defaults.  disable_ipv6,
int  ,
0444   
)
module_param_named ( autoconf  ,
ipv6_defaults.  autoconf,
int  ,
0444   
)
MODULE_PARM_DESC ( disable  ,
"Disable IPv6 module such that it is non-functional"   
)
MODULE_PARM_DESC ( disable_ipv6  ,
"Disable IPv6 on all interfaces"   
)
MODULE_PARM_DESC ( autoconf  ,
"Enable IPv6 address autoconfiguration on all interfaces"   
)

Variable Documentation

struct proto_ops inet6_dgram_ops
Initial value:
= {
.family = PF_INET6,
.owner = THIS_MODULE,
.release = inet6_release,
.bind = inet6_bind,
.connect = inet_dgram_connect,
.socketpair = sock_no_socketpair,
.accept = sock_no_accept,
.getname = inet6_getname,
.poll = udp_poll,
.ioctl = inet6_ioctl,
.listen = sock_no_listen,
.shutdown = inet_shutdown,
.setsockopt = sock_common_setsockopt,
.getsockopt = sock_common_getsockopt,
.sendmsg = inet_sendmsg,
.recvmsg = inet_recvmsg,
.mmap = sock_no_mmap,
.sendpage = sock_no_sendpage,
}

Definition at line 539 of file af_inet6.c.

struct proto_ops inet6_stream_ops
Initial value:
= {
.family = PF_INET6,
.owner = THIS_MODULE,
.release = inet6_release,
.bind = inet6_bind,
.connect = inet_stream_connect,
.socketpair = sock_no_socketpair,
.accept = inet_accept,
.getname = inet6_getname,
.poll = tcp_poll,
.ioctl = inet6_ioctl,
.listen = inet_listen,
.shutdown = inet_shutdown,
.setsockopt = sock_common_setsockopt,
.getsockopt = sock_common_getsockopt,
.sendmsg = inet_sendmsg,
.recvmsg = inet_recvmsg,
.mmap = sock_no_mmap,
.sendpage = inet_sendpage,
.splice_read = tcp_splice_read,
}

Definition at line 513 of file af_inet6.c.

struct ipv6_params ipv6_defaults
Initial value:
= {
.disable_ipv6 = 0,
.autoconf = 1,
}

Definition at line 76 of file af_inet6.c.