Deleted Added
full compact
tcp_timer.h (172074) tcp_timer.h (172309)
1/*-
2 * Copyright (c) 1982, 1986, 1993
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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_timer.h 8.1 (Berkeley) 6/10/93
1/*-
2 * Copyright (c) 1982, 1986, 1993
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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_timer.h 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/netinet/tcp_timer.h 172074 2007-09-07 09:19:22Z rwatson $
30 * $FreeBSD: head/sys/netinet/tcp_timer.h 172309 2007-09-24 05:26:24Z silby $
31 */
32
33#ifndef _NETINET_TCP_TIMER_H_
34#define _NETINET_TCP_TIMER_H_
35
36/*
37 * The TCPT_REXMT timer is used to force retransmissions.
38 * The TCP has the TCPT_REXMT timer set whenever segments

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

136 if ((u_long)(tv) < (u_long)(tvmin)) \
137 (tv) = (tvmin); \
138 if ((u_long)(tv) > (u_long)(tvmax)) \
139 (tv) = (tvmax); \
140} while(0)
141
142#ifdef _KERNEL
143
31 */
32
33#ifndef _NETINET_TCP_TIMER_H_
34#define _NETINET_TCP_TIMER_H_
35
36/*
37 * The TCPT_REXMT timer is used to force retransmissions.
38 * The TCP has the TCPT_REXMT timer set whenever segments

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

136 if ((u_long)(tv) < (u_long)(tvmin)) \
137 (tv) = (tvmin); \
138 if ((u_long)(tv) > (u_long)(tvmax)) \
139 (tv) = (tvmax); \
140} while(0)
141
142#ifdef _KERNEL
143
144struct tcp_timer {
145 struct callout tt_rexmt; /* retransmit timer */
146 struct callout tt_persist; /* retransmit persistence */
147 struct callout tt_keep; /* keepalive */
148 struct callout tt_2msl; /* 2*msl TIME_WAIT timer */
149 struct callout tt_delack; /* delayed ACK timer */
150};
144#define TT_DELACK 0x01
145#define TT_REXMT 0x02
146#define TT_PERSIST 0x04
147#define TT_KEEP 0x08
148#define TT_2MSL 0x10
149
150extern int tcp_keepinit; /* time to establish connection */
151extern int tcp_keepidle; /* time before keepalive probes begin */

--- 25 unchanged lines hidden ---
151#define TT_DELACK 0x01
152#define TT_REXMT 0x02
153#define TT_PERSIST 0x04
154#define TT_KEEP 0x08
155#define TT_2MSL 0x10
156
157extern int tcp_keepinit; /* time to establish connection */
158extern int tcp_keepidle; /* time before keepalive probes begin */

--- 25 unchanged lines hidden ---