tcp_ipv4.c (bb798169d1bb860b07192cf9c75937fadc8610b4) tcp_ipv4.c (284904aa79466a4736f4c775fdbe5c7407fa136c)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * IPv4 specific functions

--- 1216 unchanged lines hidden (view full) ---

1225
1226 if (want_cookie && !tmp_opt.saw_tstamp)
1227 tcp_clear_options(&tmp_opt);
1228
1229 tmp_opt.tstamp_ok = tmp_opt.saw_tstamp;
1230
1231 tcp_openreq_init(req, &tmp_opt, skb);
1232
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * IPv4 specific functions

--- 1216 unchanged lines hidden (view full) ---

1225
1226 if (want_cookie && !tmp_opt.saw_tstamp)
1227 tcp_clear_options(&tmp_opt);
1228
1229 tmp_opt.tstamp_ok = tmp_opt.saw_tstamp;
1230
1231 tcp_openreq_init(req, &tmp_opt, skb);
1232
1233 if (security_inet_conn_request(sk, skb, req))
1234 goto drop_and_free;
1235
1236 ireq = inet_rsk(req);
1237 ireq->loc_addr = daddr;
1238 ireq->rmt_addr = saddr;
1239 ireq->no_srccheck = inet_sk(sk)->transparent;
1240 ireq->opt = tcp_v4_save_options(sk, skb);
1233 ireq = inet_rsk(req);
1234 ireq->loc_addr = daddr;
1235 ireq->rmt_addr = saddr;
1236 ireq->no_srccheck = inet_sk(sk)->transparent;
1237 ireq->opt = tcp_v4_save_options(sk, skb);
1238
1239 if (security_inet_conn_request(sk, skb, req))
1240 goto drop_and_free;
1241
1241 if (!want_cookie)
1242 TCP_ECN_create_request(req, tcp_hdr(skb));
1243
1244 if (want_cookie) {
1245#ifdef CONFIG_SYN_COOKIES
1246 syn_flood_warning(skb);
1247 req->cookie_ts = tmp_opt.tstamp_ok;
1248#endif

--- 1208 unchanged lines hidden ---
1242 if (!want_cookie)
1243 TCP_ECN_create_request(req, tcp_hdr(skb));
1244
1245 if (want_cookie) {
1246#ifdef CONFIG_SYN_COOKIES
1247 syn_flood_warning(skb);
1248 req->cookie_ts = tmp_opt.tstamp_ok;
1249#endif

--- 1208 unchanged lines hidden ---