Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
dst.c File Reference
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/workqueue.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/string.h>
#include <linux/types.h>
#include <net/net_namespace.h>
#include <linux/sched.h>
#include <linux/prefetch.h>
#include <net/dst.h>

Go to the source code of this file.

Functions

int dst_discard (struct sk_buff *skb)
 
 EXPORT_SYMBOL (dst_discard)
 
voiddst_alloc (struct dst_ops *ops, struct net_device *dev, int initial_ref, int initial_obsolete, unsigned short flags)
 
 EXPORT_SYMBOL (dst_alloc)
 
void __dst_free (struct dst_entry *dst)
 
 EXPORT_SYMBOL (__dst_free)
 
struct dst_entrydst_destroy (struct dst_entry *dst)
 
 EXPORT_SYMBOL (dst_destroy)
 
void dst_release (struct dst_entry *dst)
 
 EXPORT_SYMBOL (dst_release)
 
u32dst_cow_metrics_generic (struct dst_entry *dst, unsigned long old)
 
 EXPORT_SYMBOL (dst_cow_metrics_generic)
 
void __dst_destroy_metrics_generic (struct dst_entry *dst, unsigned long old)
 
 EXPORT_SYMBOL (__dst_destroy_metrics_generic)
 
void skb_dst_set_noref (struct sk_buff *skb, struct dst_entry *dst)
 
 EXPORT_SYMBOL (skb_dst_set_noref)
 
void __init dst_init (void)
 

Variables

const u32 dst_default_metrics [RTAX_MAX+1]
 

Function Documentation

void __dst_destroy_metrics_generic ( struct dst_entry dst,
unsigned long  old 
)

Definition at line 310 of file dst.c.

void __dst_free ( struct dst_entry dst)

Definition at line 216 of file dst.c.

void* dst_alloc ( struct dst_ops ops,
struct net_device dev,
int  initial_ref,
int  initial_obsolete,
unsigned short  flags 
)

Definition at line 162 of file dst.c.

u32* dst_cow_metrics_generic ( struct dst_entry dst,
unsigned long  old 
)

Definition at line 285 of file dst.c.

struct dst_entry* dst_destroy ( struct dst_entry dst)
read

Definition at line 232 of file dst.c.

int dst_discard ( struct sk_buff skb)

Definition at line 145 of file dst.c.

void __init dst_init ( void  )

Definition at line 407 of file dst.c.

void dst_release ( struct dst_entry dst)

Definition at line 269 of file dst.c.

EXPORT_SYMBOL ( dst_discard  )
EXPORT_SYMBOL ( dst_alloc  )
EXPORT_SYMBOL ( __dst_free  )
EXPORT_SYMBOL ( dst_destroy  )
EXPORT_SYMBOL ( dst_release  )
EXPORT_SYMBOL ( dst_cow_metrics_generic  )
EXPORT_SYMBOL ( __dst_destroy_metrics_generic  )
EXPORT_SYMBOL ( skb_dst_set_noref  )
void skb_dst_set_noref ( struct sk_buff skb,
struct dst_entry dst 
)

skb_dst_set_noref - sets skb dst, without a reference : buffer : dst entry

Sets skb dst, assuming a reference was not taken on dst skb_dst_drop() should not dst_release() this dst

Definition at line 329 of file dst.c.

Variable Documentation

const u32 dst_default_metrics[RTAX_MAX+1]
Initial value:
= {
[RTAX_MAX] = 0xdeadbeef,
}

Definition at line 152 of file dst.c.

Definition at line 45 of file dst.c.

spinlock_t lock

Definition at line 44 of file dst.c.

unsigned long timer_expires

Definition at line 47 of file dst.c.

unsigned long timer_inc

Definition at line 46 of file dst.c.