Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ip6_flowlabel.c File Reference
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/in6.h>
#include <linux/route.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/pid_namespace.h>
#include <net/net_namespace.h>
#include <net/sock.h>
#include <net/ipv6.h>
#include <net/ndisc.h>
#include <net/protocol.h>
#include <net/ip6_route.h>
#include <net/addrconf.h>
#include <net/rawv6.h>
#include <net/icmp.h>
#include <net/transp_v6.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define FL_MIN_LINGER
 
#define FL_MAX_LINGER   60 /* Maximal linger timeout */
 
#define FL_MAX_PER_SOCK   32
 
#define FL_MAX_SIZE   4096
 
#define FL_HASH_MASK   255
 
#define FL_HASH(l)   (ntohl(l)&FL_HASH_MASK)
 

Functions

struct ip6_flowlabelfl6_sock_lookup (struct sock *sk, __be32 label)
 
 EXPORT_SYMBOL_GPL (fl6_sock_lookup)
 
void fl6_free_socklist (struct sock *sk)
 
struct ipv6_txoptionsfl6_merge_options (struct ipv6_txoptions *opt_space, struct ip6_flowlabel *fl, struct ipv6_txoptions *fopt)
 
 EXPORT_SYMBOL_GPL (fl6_merge_options)
 
int ipv6_flowlabel_opt (struct sock *sk, char __user *optval, int optlen)
 
int ip6_flowlabel_init (void)
 
void ip6_flowlabel_cleanup (void)
 

Macro Definition Documentation

#define FL_HASH (   l)    (ntohl(l)&FL_HASH_MASK)

Definition at line 49 of file ip6_flowlabel.c.

#define FL_HASH_MASK   255

Definition at line 48 of file ip6_flowlabel.c.

#define FL_MAX_LINGER   60 /* Maximal linger timeout */

Definition at line 42 of file ip6_flowlabel.c.

#define FL_MAX_PER_SOCK   32

Definition at line 46 of file ip6_flowlabel.c.

#define FL_MAX_SIZE   4096

Definition at line 47 of file ip6_flowlabel.c.

#define FL_MIN_LINGER
Value:
6 /* Minimal linger. It is set to 6sec specified
in old IPv6 RFC. Well, it was reasonable value.
*/

Definition at line 41 of file ip6_flowlabel.c.

Function Documentation

EXPORT_SYMBOL_GPL ( fl6_sock_lookup  )
EXPORT_SYMBOL_GPL ( fl6_merge_options  )
void fl6_free_socklist ( struct sock sk)

Definition at line 251 of file ip6_flowlabel.c.

struct ipv6_txoptions* fl6_merge_options ( struct ipv6_txoptions opt_space,
struct ip6_flowlabel fl,
struct ipv6_txoptions fopt 
)
read

Definition at line 272 of file ip6_flowlabel.c.

struct ip6_flowlabel* fl6_sock_lookup ( struct sock sk,
__be32  label 
)
read

Definition at line 228 of file ip6_flowlabel.c.

void ip6_flowlabel_cleanup ( void  )

Definition at line 811 of file ip6_flowlabel.c.

int ip6_flowlabel_init ( void  )

Definition at line 806 of file ip6_flowlabel.c.

int ipv6_flowlabel_opt ( struct sock sk,
char __user optval,
int  optlen 
)

Definition at line 475 of file ip6_flowlabel.c.