aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-02-09 19:14:24 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-11 02:20:36 -0500
commit75ce7ceaa1221858c0163e75d19eb8a423a212ff (patch)
tree8314e9997683d74767f6c1290bc946fb4cde424c /include/net/dst.h
parentf7b14315faf62935a791dd67969c4289563058f0 (diff)
[NET]: Introduce union in struct dst_entry to hold 'next' pointer
This patch introduces an anonymous union to nicely express the fact that all objects inherited from struct dst_entry should access to the generic 'next' pointer but with appropriate type verification. This patch is a prereq before following patches. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r--include/net/dst.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 62b7e7598e9a..5d62342e8bc4 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -37,7 +37,12 @@ struct sk_buff;
37 37
38struct dst_entry 38struct dst_entry
39{ 39{
40 struct dst_entry *next; 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 };
41 atomic_t __refcnt; /* client references */ 46 atomic_t __refcnt; /* client references */
42 int __use; 47 int __use;
43 struct dst_entry *child; 48 struct dst_entry *child;