syncookies.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | syncookies.c (33cf7c90fe2f97afb1cadaa0cfb782cb9d1b9ee2) |
---|---|
1/* 2 * Syncookies implementation for the Linux kernel 3 * 4 * Copyright (C) 1997 Andi Kleen 5 * Based on ideas by D.J.Bernstein and Eric Schenk. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 332 unchanged lines hidden (view full) --- 341 ireq->ir_mark = inet_request_mark(sk, skb); 342 ireq->snd_wscale = tcp_opt.snd_wscale; 343 ireq->sack_ok = tcp_opt.sack_ok; 344 ireq->wscale_ok = tcp_opt.wscale_ok; 345 ireq->tstamp_ok = tcp_opt.saw_tstamp; 346 req->ts_recent = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsval : 0; 347 treq->snt_synack = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsecr : 0; 348 treq->listener = NULL; | 1/* 2 * Syncookies implementation for the Linux kernel 3 * 4 * Copyright (C) 1997 Andi Kleen 5 * Based on ideas by D.J.Bernstein and Eric Schenk. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 332 unchanged lines hidden (view full) --- 341 ireq->ir_mark = inet_request_mark(sk, skb); 342 ireq->snd_wscale = tcp_opt.snd_wscale; 343 ireq->sack_ok = tcp_opt.sack_ok; 344 ireq->wscale_ok = tcp_opt.wscale_ok; 345 ireq->tstamp_ok = tcp_opt.saw_tstamp; 346 req->ts_recent = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsval : 0; 347 treq->snt_synack = tcp_opt.saw_tstamp ? tcp_opt.rcv_tsecr : 0; 348 treq->listener = NULL; |
349 ireq->ireq_net = sock_net(sk); |
|
349 350 /* We throwed the options of the initial SYN away, so we hope 351 * the ACK carries the same options again (see RFC1122 4.2.3.8) 352 */ 353 ireq->opt = tcp_v4_save_options(skb); 354 355 if (security_inet_conn_request(sk, skb, req)) { 356 reqsk_free(req); --- 43 unchanged lines hidden --- | 350 351 /* We throwed the options of the initial SYN away, so we hope 352 * the ACK carries the same options again (see RFC1122 4.2.3.8) 353 */ 354 ireq->opt = tcp_v4_save_options(skb); 355 356 if (security_inet_conn_request(sk, skb, req)) { 357 reqsk_free(req); --- 43 unchanged lines hidden --- |