dst.h (75ce7ceaa1221858c0163e75d19eb8a423a212ff) | dst.h (1e19e02ca0c5e33ea73a25127dbe6c3b8fcaac4b) |
---|---|
1/* 2 * net/dst.h Protocol independent destination cache definitions. 3 * 4 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 5 * 6 */ 7 8#ifndef _NET_DST_H --- 23 unchanged lines hidden (view full) --- 32 * is zero, it can be destroyed immediately, otherwise it is added 33 * to gc list and garbage collector periodically checks the refcnt. 34 */ 35 36struct sk_buff; 37 38struct dst_entry 39{ | 1/* 2 * net/dst.h Protocol independent destination cache definitions. 3 * 4 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 5 * 6 */ 7 8#ifndef _NET_DST_H --- 23 unchanged lines hidden (view full) --- 32 * is zero, it can be destroyed immediately, otherwise it is added 33 * to gc list and garbage collector periodically checks the refcnt. 34 */ 35 36struct sk_buff; 37 38struct dst_entry 39{ |
40 union { 41 struct dst_entry *next; 42 struct rtable *rt_next; 43 struct rt6_info *rt6_next; 44 struct dn_route *dn_next; 45 }; 46 atomic_t __refcnt; /* client references */ 47 int __use; | 40 struct rcu_head rcu_head; |
48 struct dst_entry *child; 49 struct net_device *dev; 50 short error; 51 short obsolete; 52 int flags; 53#define DST_HOST 1 54#define DST_NOXFRM 2 55#define DST_NOPOLICY 4 56#define DST_NOHASH 8 57#define DST_BALANCED 0x10 | 41 struct dst_entry *child; 42 struct net_device *dev; 43 short error; 44 short obsolete; 45 int flags; 46#define DST_HOST 1 47#define DST_NOXFRM 2 48#define DST_NOPOLICY 4 49#define DST_NOHASH 8 50#define DST_BALANCED 0x10 |
58 unsigned long lastuse; | |
59 unsigned long expires; 60 61 unsigned short header_len; /* more space at head required */ 62 unsigned short nfheader_len; /* more non-fragment space at head required */ 63 unsigned short trailer_len; /* space to reserve at tail */ 64 65 u32 metrics[RTAX_MAX]; 66 struct dst_entry *path; --- 8 unchanged lines hidden (view full) --- 75 int (*input)(struct sk_buff*); 76 int (*output)(struct sk_buff*); 77 78#ifdef CONFIG_NET_CLS_ROUTE 79 __u32 tclassid; 80#endif 81 82 struct dst_ops *ops; | 51 unsigned long expires; 52 53 unsigned short header_len; /* more space at head required */ 54 unsigned short nfheader_len; /* more non-fragment space at head required */ 55 unsigned short trailer_len; /* space to reserve at tail */ 56 57 u32 metrics[RTAX_MAX]; 58 struct dst_entry *path; --- 8 unchanged lines hidden (view full) --- 67 int (*input)(struct sk_buff*); 68 int (*output)(struct sk_buff*); 69 70#ifdef CONFIG_NET_CLS_ROUTE 71 __u32 tclassid; 72#endif 73 74 struct dst_ops *ops; |
83 struct rcu_head rcu_head; | |
84 | 75 |
76 unsigned long lastuse; 77 atomic_t __refcnt; /* client references */ 78 int __use; 79 union { 80 struct dst_entry *next; 81 struct rtable *rt_next; 82 struct rt6_info *rt6_next; 83 struct dn_route *dn_next; 84 }; |
|
85 char info[0]; 86}; 87 88 89struct dst_ops 90{ 91 unsigned short family; 92 __be16 protocol; --- 182 unchanged lines hidden --- | 85 char info[0]; 86}; 87 88 89struct dst_ops 90{ 91 unsigned short family; 92 __be16 protocol; --- 182 unchanged lines hidden --- |