Lines Matching defs:rtable

57 struct rtable {
80 #define dst_rtable(_ptr) container_of_const(_ptr, struct rtable, dst)
83 * skb_rtable - Returns the skb &rtable
86 static inline struct rtable *skb_rtable(const struct sk_buff *skb)
91 static inline bool rt_is_input_route(const struct rtable *rt)
96 static inline bool rt_is_output_route(const struct rtable *rt)
101 static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr)
160 struct rtable *ip_route_output_key_hash(struct net *net, struct flowi4 *flp,
162 struct rtable *ip_route_output_key_hash_rcu(struct net *net, struct flowi4 *flp,
166 static inline struct rtable *__ip_route_output_key(struct net *net,
172 struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
177 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp)
186 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr,
201 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4,
262 void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt);
263 struct rtable *rt_dst_alloc(struct net_device *dev,
265 struct rtable *rt_dst_clone(struct net_device *dev, struct rtable *rt);
272 void rt_add_uncached_list(struct rtable *rt);
273 void rt_del_uncached_list(struct rtable *rt);
279 static inline void ip_rt_put(struct rtable *rt)
282 * We rely on dst being first structure in struct rtable
284 BUILD_BUG_ON(offsetof(struct rtable, dst) != 0);
337 static inline struct rtable *ip_route_connect(struct flowi4 *fl4, __be32 dst,
343 struct rtable *rt;
358 static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable *rt,
377 struct rtable *rt = skb_rtable(skb);
412 static inline struct neighbour *ip_neigh_for_gw(struct rtable *rt,