Lines Matching defs:dst
23 #include <net/dst.h>
61 struct dst_entry dst;
196 int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src,
198 int ip_route_use_hint(struct sk_buff *skb, __be32 dst, __be32 src,
202 static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src,
208 err = ip_route_input_noref(skb, dst, src, tos, devin);
255 * We rely on dst being first structure in struct rtable
257 BUILD_BUG_ON(offsetof(struct rtable, dst) != 0);
258 dst_release(&rt->dst);
294 static inline void ip_route_connect_init(struct flowi4 *fl4, __be32 dst,
305 ip_sock_rt_scope(sk), protocol, flow_flags, dst,
309 static inline struct rtable *ip_route_connect(struct flowi4 *fl4, __be32 dst,
317 ip_route_connect_init(fl4, dst, src, oif, protocol, sport, dport, sk);
319 if (!dst || !src) {
357 static inline int ip4_dst_hoplimit(const struct dst_entry *dst)
359 int hoplimit = dst_metric_raw(dst, RTAX_HOPLIMIT);
360 struct net *net = dev_net(dst->dev);
383 struct net_device *dev = rt->dst.dev;