Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
udp.c File Reference
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/net.h>
#include <linux/in6.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/ipv6.h>
#include <linux/icmpv6.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <net/ndisc.h>
#include <net/protocol.h>
#include <net/transp_v6.h>
#include <net/ip6_route.h>
#include <net/raw.h>
#include <net/tcp_states.h>
#include <net/ip6_checksum.h>
#include <net/xfrm.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <trace/events/skb.h>
#include "udp_impl.h"

Go to the source code of this file.

Macros

#define SCORE2_MAX   (1 + 1 + 1)
 

Functions

int ipv6_rcv_saddr_equal (const struct sock *sk, const struct sock *sk2)
 
int udp_v6_get_port (struct sock *sk, unsigned short snum)
 
struct sock__udp6_lib_lookup (struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif, struct udp_table *udptable)
 
 EXPORT_SYMBOL_GPL (__udp6_lib_lookup)
 
struct sockudp6_lib_lookup (struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif)
 
 EXPORT_SYMBOL_GPL (udp6_lib_lookup)
 
int udpv6_recvmsg (struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len)
 
void __udp6_lib_err (struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info, struct udp_table *udptable)
 
void udpv6_encap_enable (void)
 
 EXPORT_SYMBOL (udpv6_encap_enable)
 
int udpv6_queue_rcv_skb (struct sock *sk, struct sk_buff *skb)
 
int __udp6_lib_rcv (struct sk_buff *skb, struct udp_table *udptable, int proto)
 
int udpv6_sendmsg (struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len)
 
void udpv6_destroy_sock (struct sock *sk)
 
int udpv6_setsockopt (struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen)
 
int udpv6_getsockopt (struct sock *sk, int level, int optname, char __user *optval, int __user *optlen)
 
int __init udpv6_init (void)
 
void udpv6_exit (void)
 

Variables

struct proto udpv6_prot
 

Macro Definition Documentation

#define SCORE2_MAX   (1 + 1 + 1)

Definition at line 162 of file udp.c.

Function Documentation

void __udp6_lib_err ( struct sk_buff skb,
struct inet6_skb_parm opt,
u8  type,
u8  code,
int  offset,
__be32  info,
struct udp_table udptable 
)

Definition at line 478 of file udp.c.

struct sock* __udp6_lib_lookup ( struct net net,
const struct in6_addr saddr,
__be16  sport,
const struct in6_addr daddr,
__be16  dport,
int  dif,
struct udp_table udptable 
)
read

Definition at line 242 of file udp.c.

int __udp6_lib_rcv ( struct sk_buff skb,
struct udp_table udptable,
int  proto 
)

Definition at line 789 of file udp.c.

EXPORT_SYMBOL ( udpv6_encap_enable  )
EXPORT_SYMBOL_GPL ( __udp6_lib_lookup  )
EXPORT_SYMBOL_GPL ( udp6_lib_lookup  )
int ipv6_rcv_saddr_equal ( const struct sock sk,
const struct sock sk2 
)

Definition at line 54 of file udp.c.

struct sock* udp6_lib_lookup ( struct net net,
const struct in6_addr saddr,
__be16  sport,
const struct in6_addr daddr,
__be16  dport,
int  dif 
)
read

Definition at line 325 of file udp.c.

int udp_v6_get_port ( struct sock sk,
unsigned short  snum 
)

Definition at line 103 of file udp.c.

void udpv6_destroy_sock ( struct sock sk)

Definition at line 1296 of file udp.c.

void udpv6_encap_enable ( void  )

Definition at line 547 of file udp.c.

void udpv6_exit ( void  )

Definition at line 1583 of file udp.c.

int udpv6_getsockopt ( struct sock sk,
int  level,
int  optname,
char __user optval,
int __user optlen 
)

Definition at line 1328 of file udp.c.

int __init udpv6_init ( void  )

Definition at line 1564 of file udp.c.

int udpv6_queue_rcv_skb ( struct sock sk,
struct sk_buff skb 
)

Definition at line 554 of file udp.c.

int udpv6_recvmsg ( struct kiocb iocb,
struct sock sk,
struct msghdr msg,
size_t  len,
int  noblock,
int  flags,
int addr_len 
)

Definition at line 338 of file udp.c.

int udpv6_sendmsg ( struct kiocb iocb,
struct sock sk,
struct msghdr msg,
size_t  len 
)

Definition at line 1008 of file udp.c.

int udpv6_setsockopt ( struct sock sk,
int  level,
int  optname,
char __user optval,
unsigned int  optlen 
)

Definition at line 1308 of file udp.c.

Variable Documentation

struct proto udpv6_prot
Initial value:
= {
.name = "UDPv6",
.owner = THIS_MODULE,
.close = udp_lib_close,
.disconnect = udp_disconnect,
.ioctl = udp_ioctl,
.destroy = udpv6_destroy_sock,
.setsockopt = udpv6_setsockopt,
.getsockopt = udpv6_getsockopt,
.sendmsg = udpv6_sendmsg,
.recvmsg = udpv6_recvmsg,
.backlog_rcv = __udpv6_queue_rcv_skb,
.hash = udp_lib_hash,
.unhash = udp_lib_unhash,
.rehash = udp_v6_rehash,
.get_port = udp_v6_get_port,
.memory_allocated = &udp_memory_allocated,
.sysctl_mem = sysctl_udp_mem,
.sysctl_wmem = &sysctl_udp_wmem_min,
.sysctl_rmem = &sysctl_udp_rmem_min,
.obj_size = sizeof(struct udp6_sock),
.slab_flags = SLAB_DESTROY_BY_RCU,
.h.udp_table = &udp_table,
}

Definition at line 1523 of file udp.c.