diff options
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 10a8e9523578..beecc1272169 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c | |||
@@ -356,22 +356,22 @@ struct dst_entry *inet_csk_route_req(struct sock *sk, | |||
356 | struct rtable *rt; | 356 | struct rtable *rt; |
357 | const struct inet_request_sock *ireq = inet_rsk(req); | 357 | const struct inet_request_sock *ireq = inet_rsk(req); |
358 | struct ip_options *opt = inet_rsk(req)->opt; | 358 | struct ip_options *opt = inet_rsk(req)->opt; |
359 | struct flowi fl = { | 359 | struct flowi4 fl4 = { |
360 | .flowi_oif = sk->sk_bound_dev_if, | 360 | .flowi4_oif = sk->sk_bound_dev_if, |
361 | .flowi_mark = sk->sk_mark, | 361 | .flowi4_mark = sk->sk_mark, |
362 | .fl4_dst = ((opt && opt->srr) ? | 362 | .daddr = ((opt && opt->srr) ? |
363 | opt->faddr : ireq->rmt_addr), | 363 | opt->faddr : ireq->rmt_addr), |
364 | .fl4_src = ireq->loc_addr, | 364 | .saddr = ireq->loc_addr, |
365 | .fl4_tos = RT_CONN_FLAGS(sk), | 365 | .flowi4_tos = RT_CONN_FLAGS(sk), |
366 | .flowi_proto = sk->sk_protocol, | 366 | .flowi4_proto = sk->sk_protocol, |
367 | .flowi_flags = inet_sk_flowi_flags(sk), | 367 | .flowi4_flags = inet_sk_flowi_flags(sk), |
368 | .fl4_sport = inet_sk(sk)->inet_sport, | 368 | .uli.ports.sport = inet_sk(sk)->inet_sport, |
369 | .fl4_dport = ireq->rmt_port, | 369 | .uli.ports.dport = ireq->rmt_port, |
370 | }; | 370 | }; |
371 | struct net *net = sock_net(sk); | 371 | struct net *net = sock_net(sk); |
372 | 372 | ||
373 | security_req_classify_flow(req, &fl); | 373 | security_req_classify_flow(req, flowi4_to_flowi(&fl4)); |
374 | rt = ip_route_output_flow(net, &fl, sk); | 374 | rt = ip_route_output_flow(net, &fl4, sk); |
375 | if (IS_ERR(rt)) | 375 | if (IS_ERR(rt)) |
376 | goto no_route; | 376 | goto no_route; |
377 | if (opt && opt->is_strictroute && rt->rt_dst != rt->rt_gateway) | 377 | if (opt && opt->is_strictroute && rt->rt_dst != rt->rt_gateway) |