Lines Matching refs:fl4
148 struct flowi4 fl4 = { in ip_route_output() local
154 return ip_route_output_key(net, &fl4); in ip_route_output()
157 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, in ip_route_output_ports() argument
163 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports()
168 security_sk_classify_flow(sk, flowi4_to_flowi_common(fl4)); in ip_route_output_ports()
169 return ip_route_output_flow(net, fl4, sk); in ip_route_output_ports()
172 static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4, in ip_route_output_gre() argument
176 memset(fl4, 0, sizeof(*fl4)); in ip_route_output_gre()
177 fl4->flowi4_oif = oif; in ip_route_output_gre()
178 fl4->daddr = daddr; in ip_route_output_gre()
179 fl4->saddr = saddr; in ip_route_output_gre()
180 fl4->flowi4_tos = tos; in ip_route_output_gre()
181 fl4->flowi4_proto = IPPROTO_GRE; in ip_route_output_gre()
182 fl4->fl4_gre_key = gre_key; in ip_route_output_gre()
183 return ip_route_output_key(net, fl4); in ip_route_output_gre()
291 static inline void ip_route_connect_init(struct flowi4 *fl4, __be32 dst, __be32 src, in ip_route_connect_init() argument
301 flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE, in ip_route_connect_init()
306 static inline struct rtable *ip_route_connect(struct flowi4 *fl4, in ip_route_connect() argument
315 ip_route_connect_init(fl4, dst, src, tos, oif, protocol, in ip_route_connect()
319 rt = __ip_route_output_key(net, fl4); in ip_route_connect()
323 flowi4_update_output(fl4, oif, tos, fl4->daddr, fl4->saddr); in ip_route_connect()
325 security_sk_classify_flow(sk, flowi4_to_flowi_common(fl4)); in ip_route_connect()
326 return ip_route_output_flow(net, fl4, sk); in ip_route_connect()
329 static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable *rt, in ip_route_newports() argument
335 fl4->fl4_dport = dport; in ip_route_newports()
336 fl4->fl4_sport = sport; in ip_route_newports()
338 flowi4_update_output(fl4, sk->sk_bound_dev_if, in ip_route_newports()
339 RT_CONN_FLAGS(sk), fl4->daddr, in ip_route_newports()
340 fl4->saddr); in ip_route_newports()
341 security_sk_classify_flow(sk, flowi4_to_flowi_common(fl4)); in ip_route_newports()
342 return ip_route_output_flow(sock_net(sk), fl4, sk); in ip_route_newports()