Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ip_vti.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/uaccess.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/in.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/if_arp.h>
#include <linux/mroute.h>
#include <linux/init.h>
#include <linux/netfilter_ipv4.h>
#include <linux/if_ether.h>
#include <net/sock.h>
#include <net/ip.h>
#include <net/icmp.h>
#include <net/ipip.h>
#include <net/inet_ecn.h>
#include <net/xfrm.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>

Go to the source code of this file.

Data Structures

struct  vti_net
 
struct  pcpu_tstats
 

Macros

#define HASH_SIZE   16
 
#define HASH(addr)   (((__force u32)addr^((__force u32)addr>>4))&(HASH_SIZE-1))
 
#define for_each_ip_tunnel_rcu(start)   for (t = rcu_dereference(start); t; t = rcu_dereference(t->next))
 
#define VTI_XMIT(stats1, stats2)
 

Functions

 module_init (vti_init)
 
 module_exit (vti_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_RTNL_LINK ("vti")
 
 MODULE_ALIAS_NETDEV ("ip_vti0")
 

Macro Definition Documentation

#define for_each_ip_tunnel_rcu (   start)    for (t = rcu_dereference(start); t; t = rcu_dereference(t->next))

Definition at line 71 of file ip_vti.c.

#define HASH (   addr)    (((__force u32)addr^((__force u32)addr>>4))&(HASH_SIZE-1))

Definition at line 48 of file ip_vti.c.

#define HASH_SIZE   16

Definition at line 47 of file ip_vti.c.

#define VTI_XMIT (   stats1,
  stats2 
)
Value:
do { \
int err; \
int pkt_len = skb->len; \
err = dst_output(skb); \
if (net_xmit_eval(err) == 0) { \
u64_stats_update_begin(&(stats1)->syncp); \
(stats1)->tx_bytes += pkt_len; \
(stats1)->tx_packets++; \
u64_stats_update_end(&(stats1)->syncp); \
} else { \
(stats2)->tx_errors++; \
(stats2)->tx_aborted_errors++; \
} \
} while (0)

Definition at line 83 of file ip_vti.c.

Function Documentation

MODULE_ALIAS_NETDEV ( "ip_vti0"  )
MODULE_ALIAS_RTNL_LINK ( "vti"  )
module_exit ( vti_fini  )
module_init ( vti_init  )
MODULE_LICENSE ( "GPL"  )