Lines Matching full:rt
75 static inline bool rt_is_input_route(const struct rtable *rt) in rt_is_input_route() argument
77 return rt->rt_is_input != 0; in rt_is_input_route()
80 static inline bool rt_is_output_route(const struct rtable *rt) in rt_is_output_route() argument
82 return rt->rt_is_input == 0; in rt_is_output_route()
85 static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) in rt_nexthop() argument
87 if (rt->rt_gw_family == AF_INET) in rt_nexthop()
88 return rt->rt_gw4; in rt_nexthop()
220 int ip_rt_ioctl(struct net *, unsigned int cmd, struct rtentry *rt);
221 void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt);
225 struct rtable *rt_dst_clone(struct net_device *dev, struct rtable *rt);
232 void rt_add_uncached_list(struct rtable *rt);
233 void rt_del_uncached_list(struct rtable *rt);
239 static inline void ip_rt_put(struct rtable *rt) in ip_rt_put() argument
245 dst_release(&rt->dst); in ip_rt_put()
303 struct rtable *rt; in ip_route_connect() local
309 rt = __ip_route_output_key(net, fl4); in ip_route_connect()
310 if (IS_ERR(rt)) in ip_route_connect()
311 return rt; in ip_route_connect()
312 ip_rt_put(rt); in ip_route_connect()
319 static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable *rt, in ip_route_newports() argument
327 ip_rt_put(rt); in ip_route_newports()
334 return rt; in ip_route_newports()
339 struct rtable *rt = skb_rtable(skb); in inet_iif() local
341 if (rt && rt->rt_iif) in inet_iif()
342 return rt->rt_iif; in inet_iif()
369 static inline struct neighbour *ip_neigh_for_gw(struct rtable *rt, in ip_neigh_for_gw() argument
373 struct net_device *dev = rt->dst.dev; in ip_neigh_for_gw()
376 if (likely(rt->rt_gw_family == AF_INET)) { in ip_neigh_for_gw()
377 neigh = ip_neigh_gw4(dev, rt->rt_gw4); in ip_neigh_for_gw()
378 } else if (rt->rt_gw_family == AF_INET6) { in ip_neigh_for_gw()
379 neigh = ip_neigh_gw6(dev, &rt->rt_gw6); in ip_neigh_for_gw()