tcp.h (55679) | tcp.h (60067) |
---|---|
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 --- 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.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 --- 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.h 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/netinet/tcp.h 55679 2000-01-09 19:17:30Z shin $ | 34 * $FreeBSD: head/sys/netinet/tcp.h 60067 2000-05-06 03:31:09Z jlemon $ |
35 */ 36 37#ifndef _NETINET_TCP_H_ 38#define _NETINET_TCP_H_ 39 40typedef u_int32_t tcp_seq; 41typedef u_int32_t tcp_cc; /* connection count per rfc1644 */ 42 --- 70 unchanged lines hidden (view full) --- 113 */ 114#define TCP6_MSS 1024 115 116#define TCP_MAXWIN 65535 /* largest value for (unscaled) window */ 117#define TTCP_CLIENT_SND_WND 4096 /* dflt send window for T/TCP client */ 118 119#define TCP_MAX_WINSHIFT 14 /* maximum window shift */ 120 | 35 */ 36 37#ifndef _NETINET_TCP_H_ 38#define _NETINET_TCP_H_ 39 40typedef u_int32_t tcp_seq; 41typedef u_int32_t tcp_cc; /* connection count per rfc1644 */ 42 --- 70 unchanged lines hidden (view full) --- 113 */ 114#define TCP6_MSS 1024 115 116#define TCP_MAXWIN 65535 /* largest value for (unscaled) window */ 117#define TTCP_CLIENT_SND_WND 4096 /* dflt send window for T/TCP client */ 118 119#define TCP_MAX_WINSHIFT 14 /* maximum window shift */ 120 |
121#define TCP_MAXBURST 4 /* maximum segments in a burst */ 122 |
|
121#define TCP_MAXHLEN (0xf<<2) /* max length of header in bytes */ 122#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr)) 123 /* max space left for options */ 124 125/* 126 * User-settable options (used with setsockopt). 127 */ 128#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ 129#define TCP_MAXSEG 0x02 /* set maximum segment size */ 130#define TCP_NOPUSH 0x04 /* don't push last block of write */ 131#define TCP_NOOPT 0x08 /* don't use TCP options */ 132 133#endif | 123#define TCP_MAXHLEN (0xf<<2) /* max length of header in bytes */ 124#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr)) 125 /* max space left for options */ 126 127/* 128 * User-settable options (used with setsockopt). 129 */ 130#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ 131#define TCP_MAXSEG 0x02 /* set maximum segment size */ 132#define TCP_NOPUSH 0x04 /* don't push last block of write */ 133#define TCP_NOOPT 0x08 /* don't use TCP options */ 134 135#endif |