Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
dst.h File Reference
#include <net/dst_ops.h>
#include <linux/netdevice.h>
#include <linux/rtnetlink.h>
#include <linux/rcupdate.h>
#include <linux/bug.h>
#include <linux/jiffies.h>
#include <net/neighbour.h>
#include <asm/processor.h>

Go to the source code of this file.

Data Structures

struct  dst_entry
 

Macros

#define DST_GC_MIN   (HZ/10)
 
#define DST_GC_INC   (HZ/2)
 
#define DST_GC_MAX   (120*HZ)
 
#define DST_HOST   0x0001
 
#define DST_NOXFRM   0x0002
 
#define DST_NOPOLICY   0x0004
 
#define DST_NOHASH   0x0008
 
#define DST_NOCACHE   0x0010
 
#define DST_NOCOUNT   0x0020
 
#define DST_NOPEER   0x0040
 
#define DST_FAKE_RTABLE   0x0080
 
#define DST_XFRM_TUNNEL   0x0100
 
#define DST_OBSOLETE_NONE   0
 
#define DST_OBSOLETE_DEAD   2
 
#define DST_OBSOLETE_FORCE_CHK   -1
 
#define DST_OBSOLETE_KILL   -2
 
#define DST_METRICS_READ_ONLY   0x1UL
 
#define __DST_METRICS_PTR(Y)   ((u32 *)((Y) & ~DST_METRICS_READ_ONLY))
 
#define DST_METRICS_PTR(X)   __DST_METRICS_PTR((X)->_metrics)
 

Enumerations

enum  { XFRM_LOOKUP_ICMP = 1 << 0 }
 

Functions

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

Variables

const u32 dst_default_metrics []
 

Macro Definition Documentation

#define __DST_METRICS_PTR (   Y)    ((u32 *)((Y) & ~DST_METRICS_READ_ONLY))

Definition at line 116 of file dst.h.

#define DST_FAKE_RTABLE   0x0080

Definition at line 62 of file dst.h.

#define DST_GC_INC   (HZ/2)

Definition at line 21 of file dst.h.

#define DST_GC_MAX   (120*HZ)

Definition at line 22 of file dst.h.

#define DST_GC_MIN   (HZ/10)

Definition at line 20 of file dst.h.

#define DST_HOST   0x0001

Definition at line 55 of file dst.h.

#define DST_METRICS_PTR (   X)    __DST_METRICS_PTR((X)->_metrics)

Definition at line 118 of file dst.h.

#define DST_METRICS_READ_ONLY   0x1UL

Definition at line 115 of file dst.h.

#define DST_NOCACHE   0x0010

Definition at line 59 of file dst.h.

#define DST_NOCOUNT   0x0020

Definition at line 60 of file dst.h.

#define DST_NOHASH   0x0008

Definition at line 58 of file dst.h.

#define DST_NOPEER   0x0040

Definition at line 61 of file dst.h.

#define DST_NOPOLICY   0x0004

Definition at line 57 of file dst.h.

#define DST_NOXFRM   0x0002

Definition at line 56 of file dst.h.

#define DST_OBSOLETE_DEAD   2

Definition at line 79 of file dst.h.

#define DST_OBSOLETE_FORCE_CHK   -1

Definition at line 80 of file dst.h.

#define DST_OBSOLETE_KILL   -2

Definition at line 81 of file dst.h.

#define DST_OBSOLETE_NONE   0

Definition at line 78 of file dst.h.

#define DST_XFRM_TUNNEL   0x0100

Definition at line 63 of file dst.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
XFRM_LOOKUP_ICMP 

Definition at line 468 of file dst.h.

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 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.

Variable Documentation

const u32 dst_default_metrics[]

Definition at line 152 of file dst.c.