Deleted Added
full compact
tcp_var.h (122922) tcp_var.h (124258)
1/*
2 * Copyright (c) 1982, 1986, 1993, 1994, 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)tcp_var.h 8.4 (Berkeley) 5/24/95
1/*
2 * Copyright (c) 1982, 1986, 1993, 1994, 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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)tcp_var.h 8.4 (Berkeley) 5/24/95
34 * $FreeBSD: head/sys/netinet/tcp_var.h 122922 2003-11-20 20:07:39Z andre $
34 * $FreeBSD: head/sys/netinet/tcp_var.h 124258 2004-01-08 17:40:07Z andre $
35 */
36
37#ifndef _NETINET_TCP_VAR_H_
38#define _NETINET_TCP_VAR_H_
39
40#include <netinet/in_pcb.h> /* needed for in_conninfo, inp_gen_t */
41#include <netinet/tcp.h>
42

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

174 tcp_cc cc_send; /* send connection count */
175 tcp_cc cc_recv; /* receive connection count */
176/* experimental */
177 u_long snd_cwnd_prev; /* cwnd prior to retransmit */
178 u_long snd_ssthresh_prev; /* ssthresh prior to retransmit */
179 tcp_seq snd_recover_prev; /* snd_recover prior to retransmit */
180 u_long t_badrxtwin; /* window for retransmit recovery */
181 u_char snd_limited; /* segments limited transmitted */
35 */
36
37#ifndef _NETINET_TCP_VAR_H_
38#define _NETINET_TCP_VAR_H_
39
40#include <netinet/in_pcb.h> /* needed for in_conninfo, inp_gen_t */
41#include <netinet/tcp.h>
42

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

174 tcp_cc cc_send; /* send connection count */
175 tcp_cc cc_recv; /* receive connection count */
176/* experimental */
177 u_long snd_cwnd_prev; /* cwnd prior to retransmit */
178 u_long snd_ssthresh_prev; /* ssthresh prior to retransmit */
179 tcp_seq snd_recover_prev; /* snd_recover prior to retransmit */
180 u_long t_badrxtwin; /* window for retransmit recovery */
181 u_char snd_limited; /* segments limited transmitted */
182/* anti DoS counters */
183 u_long rcv_second; /* start of interval second */
184 u_long rcv_pps; /* received packets per second */
185 u_long rcv_byps; /* received bytes per second */
182};
183
184#define IN_FASTRECOVERY(tp) (tp->t_flags & TF_FASTRECOVERY)
185#define ENTER_FASTRECOVERY(tp) tp->t_flags |= TF_FASTRECOVERY
186#define EXIT_FASTRECOVERY(tp) tp->t_flags &= ~TF_FASTRECOVERY
187
188/*
189 * Structure to hold TCP options that are only used during segment

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

327 * but that's inconvenient at the moment.
328 */
329struct tcpstat {
330 u_long tcps_connattempt; /* connections initiated */
331 u_long tcps_accepts; /* connections accepted */
332 u_long tcps_connects; /* connections established */
333 u_long tcps_drops; /* connections dropped */
334 u_long tcps_conndrops; /* embryonic connections dropped */
186};
187
188#define IN_FASTRECOVERY(tp) (tp->t_flags & TF_FASTRECOVERY)
189#define ENTER_FASTRECOVERY(tp) tp->t_flags |= TF_FASTRECOVERY
190#define EXIT_FASTRECOVERY(tp) tp->t_flags &= ~TF_FASTRECOVERY
191
192/*
193 * Structure to hold TCP options that are only used during segment

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

331 * but that's inconvenient at the moment.
332 */
333struct tcpstat {
334 u_long tcps_connattempt; /* connections initiated */
335 u_long tcps_accepts; /* connections accepted */
336 u_long tcps_connects; /* connections established */
337 u_long tcps_drops; /* connections dropped */
338 u_long tcps_conndrops; /* embryonic connections dropped */
339 u_long tcps_minmssdrops; /* average minmss too low drops */
335 u_long tcps_closed; /* conn. closed (includes drops) */
336 u_long tcps_segstimed; /* segs where we tried to get rtt */
337 u_long tcps_rttupdated; /* times we succeeded */
338 u_long tcps_delack; /* delayed acks sent */
339 u_long tcps_timeoutdrop; /* conn. dropped in rxmt timeout */
340 u_long tcps_rexmttimeo; /* retransmit timeouts */
341 u_long tcps_persisttimeo; /* persist timeouts */
342 u_long tcps_keeptimeo; /* keepalive timeouts */

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

468#ifdef SYSCTL_DECL
469SYSCTL_DECL(_net_inet_tcp);
470#endif
471
472extern struct inpcbhead tcb; /* head of queue of active tcpcb's */
473extern struct inpcbinfo tcbinfo;
474extern struct tcpstat tcpstat; /* tcp statistics */
475extern int tcp_mssdflt; /* XXX */
340 u_long tcps_closed; /* conn. closed (includes drops) */
341 u_long tcps_segstimed; /* segs where we tried to get rtt */
342 u_long tcps_rttupdated; /* times we succeeded */
343 u_long tcps_delack; /* delayed acks sent */
344 u_long tcps_timeoutdrop; /* conn. dropped in rxmt timeout */
345 u_long tcps_rexmttimeo; /* retransmit timeouts */
346 u_long tcps_persisttimeo; /* persist timeouts */
347 u_long tcps_keeptimeo; /* keepalive timeouts */

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

473#ifdef SYSCTL_DECL
474SYSCTL_DECL(_net_inet_tcp);
475#endif
476
477extern struct inpcbhead tcb; /* head of queue of active tcpcb's */
478extern struct inpcbinfo tcbinfo;
479extern struct tcpstat tcpstat; /* tcp statistics */
480extern int tcp_mssdflt; /* XXX */
481extern int tcp_minmss;
482extern int tcp_minmssoverload;
476extern int tcp_delack_enabled;
477extern int tcp_do_newreno;
478extern int path_mtu_discovery;
479extern int ss_fltsz;
480extern int ss_fltsz_local;
481
482void tcp_canceltimers(struct tcpcb *);
483struct tcpcb *

--- 69 unchanged lines hidden ---
483extern int tcp_delack_enabled;
484extern int tcp_do_newreno;
485extern int path_mtu_discovery;
486extern int ss_fltsz;
487extern int ss_fltsz_local;
488
489void tcp_canceltimers(struct tcpcb *);
490struct tcpcb *

--- 69 unchanged lines hidden ---