Lines Matching refs:rt
143 static inline void rt6_clean_expires(struct rt6_info *rt) in rt6_clean_expires() argument
145 rt->rt6i_flags &= ~RTF_EXPIRES; in rt6_clean_expires()
146 rt->dst.expires = 0; in rt6_clean_expires()
149 static inline void rt6_set_expires(struct rt6_info *rt, unsigned long expires) in rt6_set_expires() argument
151 rt->dst.expires = expires; in rt6_set_expires()
152 rt->rt6i_flags |= RTF_EXPIRES; in rt6_set_expires()
157 struct rt6_info *rt; in rt6_update_expires() local
159 for (rt = rt0; rt && !(rt->rt6i_flags & RTF_EXPIRES); in rt6_update_expires()
160 rt = (struct rt6_info *)rt->dst.from); in rt6_update_expires()
161 if (rt && rt != rt0) in rt6_update_expires()
162 rt0->dst.expires = rt->dst.expires; in rt6_update_expires()
168 static inline u32 rt6_get_cookie(const struct rt6_info *rt) in rt6_get_cookie() argument
170 if (rt->rt6i_flags & RTF_PCPU || in rt6_get_cookie()
171 (unlikely(rt->dst.flags & DST_NOCACHE) && rt->dst.from)) in rt6_get_cookie()
172 rt = (struct rt6_info *)(rt->dst.from); in rt6_get_cookie()
174 return rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0; in rt6_get_cookie()
177 static inline void ip6_rt_put(struct rt6_info *rt) in ip6_rt_put() argument
183 dst_release(&rt->dst); in ip6_rt_put()
275 int fib6_add(struct fib6_node *root, struct rt6_info *rt,
277 int fib6_del(struct rt6_info *rt, struct nl_info *info);
279 void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info,