diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-10-13 03:17:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:07 -0500 |
commit | 7a3025b1b3a0173be5de6ced18754b909da27b38 (patch) | |
tree | dbb121ce5b9e2e97ee1e022093249eb2ed7cc3be /include/net | |
parent | 40aa7b90a9b41a2162c829fd6cd34a09056a7ddb (diff) |
[IPV6]: Introduce ip6_dst_idev() to get inet6_dev{} stored in dst_entry{}.
Otherwise, we will see a lot of casts...
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip6_fib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index e4438de3bd6b..f9cde44f93b4 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
@@ -107,6 +107,11 @@ struct rt6_info | |||
107 | u8 rt6i_protocol; | 107 | u8 rt6i_protocol; |
108 | }; | 108 | }; |
109 | 109 | ||
110 | static inline struct inet6_dev *ip6_dst_idev(struct dst_entry *dst) | ||
111 | { | ||
112 | return ((struct rt6_info *)dst)->rt6i_idev; | ||
113 | } | ||
114 | |||
110 | struct fib6_walker_t | 115 | struct fib6_walker_t |
111 | { | 116 | { |
112 | struct fib6_walker_t *prev, *next; | 117 | struct fib6_walker_t *prev, *next; |