|
@@ -769,11 +769,12 @@ static int tcp_v4_send_synack(struct sock *sk, struct dst_entry *dst,
|
|
|
struct request_values *rvp)
|
|
struct request_values *rvp)
|
|
|
{
|
|
{
|
|
|
const struct inet_request_sock *ireq = inet_rsk(req);
|
|
const struct inet_request_sock *ireq = inet_rsk(req);
|
|
|
|
|
+ struct flowi4 fl4;
|
|
|
int err = -1;
|
|
int err = -1;
|
|
|
struct sk_buff * skb;
|
|
struct sk_buff * skb;
|
|
|
|
|
|
|
|
/* First, grab a route. */
|
|
/* First, grab a route. */
|
|
|
- if (!dst && (dst = inet_csk_route_req(sk, req)) == NULL)
|
|
|
|
|
|
|
+ if (!dst && (dst = inet_csk_route_req(sk, &fl4, req)) == NULL)
|
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
|
|
skb = tcp_make_synack(sk, dst, req, rvp);
|
|
skb = tcp_make_synack(sk, dst, req, rvp);
|
|
@@ -1338,6 +1339,7 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
|
|
|
req->cookie_ts = tmp_opt.tstamp_ok;
|
|
req->cookie_ts = tmp_opt.tstamp_ok;
|
|
|
} else if (!isn) {
|
|
} else if (!isn) {
|
|
|
struct inet_peer *peer = NULL;
|
|
struct inet_peer *peer = NULL;
|
|
|
|
|
+ struct flowi4 fl4;
|
|
|
|
|
|
|
|
/* VJ's idea. We save last timestamp seen
|
|
/* VJ's idea. We save last timestamp seen
|
|
|
* from the destination in peer table, when entering
|
|
* from the destination in peer table, when entering
|
|
@@ -1350,7 +1352,7 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
|
|
|
*/
|
|
*/
|
|
|
if (tmp_opt.saw_tstamp &&
|
|
if (tmp_opt.saw_tstamp &&
|
|
|
tcp_death_row.sysctl_tw_recycle &&
|
|
tcp_death_row.sysctl_tw_recycle &&
|
|
|
- (dst = inet_csk_route_req(sk, req)) != NULL &&
|
|
|
|
|
|
|
+ (dst = inet_csk_route_req(sk, &fl4, req)) != NULL &&
|
|
|
(peer = rt_get_peer((struct rtable *)dst)) != NULL &&
|
|
(peer = rt_get_peer((struct rtable *)dst)) != NULL &&
|
|
|
peer->daddr.addr.a4 == saddr) {
|
|
peer->daddr.addr.a4 == saddr) {
|
|
|
inet_peer_refcheck(peer);
|
|
inet_peer_refcheck(peer);
|