tcp_timewait.c (215701) | tcp_timewait.c (218909) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet/tcp_timewait.c 215701 2010-11-22 19:32:54Z dim $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/tcp_timewait.c 218909 2011-02-21 09:01:34Z brucec $"); |
34 35#include "opt_inet.h" 36#include "opt_inet6.h" 37#include "opt_tcpdebug.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/callout.h> --- 350 unchanged lines hidden (view full) --- 392 * are above the previous ones. 393 */ 394 if ((thflags & TH_SYN) && SEQ_GT(th->th_seq, tw->rcv_nxt)) { 395 tcp_twclose(tw, 0); 396 return (1); 397 } 398 399 /* | 34 35#include "opt_inet.h" 36#include "opt_inet6.h" 37#include "opt_tcpdebug.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/callout.h> --- 350 unchanged lines hidden (view full) --- 392 * are above the previous ones. 393 */ 394 if ((thflags & TH_SYN) && SEQ_GT(th->th_seq, tw->rcv_nxt)) { 395 tcp_twclose(tw, 0); 396 return (1); 397 } 398 399 /* |
400 * Drop the the segment if it does not contain an ACK. | 400 * Drop the segment if it does not contain an ACK. |
401 */ 402 if ((thflags & TH_ACK) == 0) 403 goto drop; 404 405 /* 406 * Reset the 2MSL timer if this is a duplicate FIN. 407 */ 408 if (thflags & TH_FIN) { --- 208 unchanged lines hidden --- | 401 */ 402 if ((thflags & TH_ACK) == 0) 403 goto drop; 404 405 /* 406 * Reset the 2MSL timer if this is a duplicate FIN. 407 */ 408 if (thflags & TH_FIN) { --- 208 unchanged lines hidden --- |