Deleted Added
full compact
tcp_var.h (178349) tcp_var.h (181056)
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

--- 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_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

--- 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_var.h 8.4 (Berkeley) 5/24/95
30 * $FreeBSD: head/sys/netinet/tcp_var.h 178349 2008-04-20 18:36:59Z bz $
30 * $FreeBSD: head/sys/netinet/tcp_var.h 181056 2008-07-31 15:10:09Z rpaulo $
31 */
32
33#ifndef _NETINET_TCP_VAR_H_
34#define _NETINET_TCP_VAR_H_
35
36#include <netinet/tcp.h>
37
38/*

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

119#define TF_LASTIDLE 0x040000 /* connection was previously idle */
120#define TF_RXWIN0SENT 0x080000 /* sent a receiver win 0 in response */
121#define TF_FASTRECOVERY 0x100000 /* in NewReno Fast Recovery */
122#define TF_WASFRECOVERY 0x200000 /* was in NewReno Fast Recovery */
123#define TF_SIGNATURE 0x400000 /* require MD5 digests (RFC2385) */
124#define TF_FORCEDATA 0x800000 /* force out a byte */
125#define TF_TSO 0x1000000 /* TSO enabled on this connection */
126#define TF_TOE 0x2000000 /* this connection is offloaded */
31 */
32
33#ifndef _NETINET_TCP_VAR_H_
34#define _NETINET_TCP_VAR_H_
35
36#include <netinet/tcp.h>
37
38/*

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

119#define TF_LASTIDLE 0x040000 /* connection was previously idle */
120#define TF_RXWIN0SENT 0x080000 /* sent a receiver win 0 in response */
121#define TF_FASTRECOVERY 0x100000 /* in NewReno Fast Recovery */
122#define TF_WASFRECOVERY 0x200000 /* was in NewReno Fast Recovery */
123#define TF_SIGNATURE 0x400000 /* require MD5 digests (RFC2385) */
124#define TF_FORCEDATA 0x800000 /* force out a byte */
125#define TF_TSO 0x1000000 /* TSO enabled on this connection */
126#define TF_TOE 0x2000000 /* this connection is offloaded */
127#define TF_ECN_PERMIT 0x4000000 /* connection ECN-ready */
128#define TF_ECN_SND_CWR 0x8000000 /* ECN CWR in queue */
129#define TF_ECN_SND_ECE 0x10000000 /* ECN ECE in queue */
127
128 tcp_seq snd_una; /* send unacknowledged */
129 tcp_seq snd_max; /* highest sequence number sent;
130 * used to recognize retransmits
131 */
132 tcp_seq snd_nxt; /* send next */
133 tcp_seq snd_up; /* send urgent pointer */
134

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

428
429 /* SACK related stats */
430 u_long tcps_sack_recovery_episode; /* SACK recovery episodes */
431 u_long tcps_sack_rexmits; /* SACK rexmit segments */
432 u_long tcps_sack_rexmit_bytes; /* SACK rexmit bytes */
433 u_long tcps_sack_rcv_blocks; /* SACK blocks (options) received */
434 u_long tcps_sack_send_blocks; /* SACK blocks (options) sent */
435 u_long tcps_sack_sboverflow; /* times scoreboard overflowed */
130
131 tcp_seq snd_una; /* send unacknowledged */
132 tcp_seq snd_max; /* highest sequence number sent;
133 * used to recognize retransmits
134 */
135 tcp_seq snd_nxt; /* send next */
136 tcp_seq snd_up; /* send urgent pointer */
137

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

431
432 /* SACK related stats */
433 u_long tcps_sack_recovery_episode; /* SACK recovery episodes */
434 u_long tcps_sack_rexmits; /* SACK rexmit segments */
435 u_long tcps_sack_rexmit_bytes; /* SACK rexmit bytes */
436 u_long tcps_sack_rcv_blocks; /* SACK blocks (options) received */
437 u_long tcps_sack_send_blocks; /* SACK blocks (options) sent */
438 u_long tcps_sack_sboverflow; /* times scoreboard overflowed */
439
440 /* ECN related stats */
441 u_long tcps_ecn_ce; /* ECN Congestion Experienced */
442 u_long tcps_ecn_ect0; /* ECN Capable Transport */
443 u_long tcps_ecn_ect1; /* ECN Capable Transport */
444 u_long tcps_ecn_shs; /* ECN successful handshakes */
445 u_long tcps_ecn_rcwnd; /* # times ECN reduced the cwnd */
436};
437
438/*
439 * TCB structure exported to user-land via sysctl(3).
440 * Evil hack: declare only if in_pcb.h and sys/socketvar.h have been
441 * included. Not all of our clients do.
442 */
443#if defined(_NETINET_IN_PCB_H_) && defined(_SYS_SOCKETVAR_H_)

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

504extern int tcp_delack_enabled;
505extern int tcp_do_newreno;
506extern int path_mtu_discovery;
507extern int ss_fltsz;
508extern int ss_fltsz_local;
509
510extern int tcp_do_sack; /* SACK enabled/disabled */
511extern int tcp_sc_rst_sock_fail; /* RST on sock alloc failure */
446};
447
448/*
449 * TCB structure exported to user-land via sysctl(3).
450 * Evil hack: declare only if in_pcb.h and sys/socketvar.h have been
451 * included. Not all of our clients do.
452 */
453#if defined(_NETINET_IN_PCB_H_) && defined(_SYS_SOCKETVAR_H_)

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

514extern int tcp_delack_enabled;
515extern int tcp_do_newreno;
516extern int path_mtu_discovery;
517extern int ss_fltsz;
518extern int ss_fltsz_local;
519
520extern int tcp_do_sack; /* SACK enabled/disabled */
521extern int tcp_sc_rst_sock_fail; /* RST on sock alloc failure */
522extern int tcp_do_ecn; /* TCP ECN enabled/disabled */
523extern int tcp_ecn_maxretries;
512
513int tcp_addoptions(struct tcpopt *, u_char *);
514struct tcpcb *
515 tcp_close(struct tcpcb *);
516void tcp_discardcb(struct tcpcb *);
517void tcp_twstart(struct tcpcb *);
518#if 0
519int tcp_twrecycleable(struct tcptw *tw);

--- 72 unchanged lines hidden ---
524
525int tcp_addoptions(struct tcpopt *, u_char *);
526struct tcpcb *
527 tcp_close(struct tcpcb *);
528void tcp_discardcb(struct tcpcb *);
529void tcp_twstart(struct tcpcb *);
530#if 0
531int tcp_twrecycleable(struct tcptw *tw);

--- 72 unchanged lines hidden ---