Deleted Added
full compact
tcp.h (130989) tcp.h (133874)
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.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.h 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/netinet/tcp.h 130989 2004-06-23 21:04:37Z ps $
30 * $FreeBSD: head/sys/netinet/tcp.h 133874 2004-08-16 18:32:07Z rwatson $
31 */
32
33#ifndef _NETINET_TCP_H_
34#define _NETINET_TCP_H_
35
36#include <sys/cdefs.h>
37
38#if __BSD_VISIBLE

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

146 */
147#define TCP6_MSS 1024
148
149#define TCP_MAXWIN 65535 /* largest value for (unscaled) window */
150#define TTCP_CLIENT_SND_WND 4096 /* dflt send window for T/TCP client */
151
152#define TCP_MAX_WINSHIFT 14 /* maximum window shift */
153
31 */
32
33#ifndef _NETINET_TCP_H_
34#define _NETINET_TCP_H_
35
36#include <sys/cdefs.h>
37
38#if __BSD_VISIBLE

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

146 */
147#define TCP6_MSS 1024
148
149#define TCP_MAXWIN 65535 /* largest value for (unscaled) window */
150#define TTCP_CLIENT_SND_WND 4096 /* dflt send window for T/TCP client */
151
152#define TCP_MAX_WINSHIFT 14 /* maximum window shift */
153
154#define TCP_MAXBURST 4 /* maximum segments in a burst */
154#define TCP_MAXBURST 4 /* maximum segments in a burst */
155
156#define TCP_MAXHLEN (0xf<<2) /* max length of header in bytes */
157#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
158 /* max space left for options */
159#endif /* __BSD_VISIBLE */
160
161/*
162 * User-settable options (used with setsockopt).
163 */
164#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
165#if __BSD_VISIBLE
166#define TCP_MAXSEG 0x02 /* set maximum segment size */
167#define TCP_NOPUSH 0x04 /* don't push last block of write */
168#define TCP_NOOPT 0x08 /* don't use TCP options */
169#define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */
170#endif
171
172#endif /* !_NETINET_TCP_H_ */
155
156#define TCP_MAXHLEN (0xf<<2) /* max length of header in bytes */
157#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
158 /* max space left for options */
159#endif /* __BSD_VISIBLE */
160
161/*
162 * User-settable options (used with setsockopt).
163 */
164#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
165#if __BSD_VISIBLE
166#define TCP_MAXSEG 0x02 /* set maximum segment size */
167#define TCP_NOPUSH 0x04 /* don't push last block of write */
168#define TCP_NOOPT 0x08 /* don't use TCP options */
169#define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */
170#endif
171
172#endif /* !_NETINET_TCP_H_ */