tcp.h (124437) | tcp.h (125680) |
---|---|
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 124437 2004-01-12 15:46:04Z andre $ | 34 * $FreeBSD: head/sys/netinet/tcp.h 125680 2004-02-11 04:26:04Z bms $ |
35 */ 36 37#ifndef _NETINET_TCP_H_ 38#define _NETINET_TCP_H_ 39 40#include <sys/cdefs.h> 41 42#if __BSD_VISIBLE --- 54 unchanged lines hidden (view full) --- 97 98#define TCPOPT_CC 11 /* CC options: RFC-1644 */ 99#define TCPOPT_CCNEW 12 100#define TCPOPT_CCECHO 13 101#define TCPOLEN_CC 6 102#define TCPOLEN_CC_APPA (TCPOLEN_CC+2) 103#define TCPOPT_CC_HDR(ccopt) \ 104 (TCPOPT_NOP<<24|TCPOPT_NOP<<16|(ccopt)<<8|TCPOLEN_CC) | 35 */ 36 37#ifndef _NETINET_TCP_H_ 38#define _NETINET_TCP_H_ 39 40#include <sys/cdefs.h> 41 42#if __BSD_VISIBLE --- 54 unchanged lines hidden (view full) --- 97 98#define TCPOPT_CC 11 /* CC options: RFC-1644 */ 99#define TCPOPT_CCNEW 12 100#define TCPOPT_CCECHO 13 101#define TCPOLEN_CC 6 102#define TCPOLEN_CC_APPA (TCPOLEN_CC+2) 103#define TCPOPT_CC_HDR(ccopt) \ 104 (TCPOPT_NOP<<24|TCPOPT_NOP<<16|(ccopt)<<8|TCPOLEN_CC) |
105#define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ 106#define TCPOLEN_SIGNATURE 18 |
|
105 106/* 107 * Default maximum segment size for TCP. 108 * With an IP MTU of 576, this is 536, 109 * but 512 is probably more convenient. 110 * This should be defined as MIN(512, IP_MSS - sizeof (struct tcpiphdr)). 111 */ 112#define TCP_MSS 512 --- 38 unchanged lines hidden (view full) --- 151/* 152 * User-settable options (used with setsockopt). 153 */ 154#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ 155#if __BSD_VISIBLE 156#define TCP_MAXSEG 0x02 /* set maximum segment size */ 157#define TCP_NOPUSH 0x04 /* don't push last block of write */ 158#define TCP_NOOPT 0x08 /* don't use TCP options */ | 107 108/* 109 * Default maximum segment size for TCP. 110 * With an IP MTU of 576, this is 536, 111 * but 512 is probably more convenient. 112 * This should be defined as MIN(512, IP_MSS - sizeof (struct tcpiphdr)). 113 */ 114#define TCP_MSS 512 --- 38 unchanged lines hidden (view full) --- 153/* 154 * User-settable options (used with setsockopt). 155 */ 156#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ 157#if __BSD_VISIBLE 158#define TCP_MAXSEG 0x02 /* set maximum segment size */ 159#define TCP_NOPUSH 0x04 /* don't push last block of write */ 160#define TCP_NOOPT 0x08 /* don't use TCP options */ |
161#define TCP_SIGNATURE_ENABLE 0x10 /* use MD5 digests (RFC2385) */ |
|
159#endif 160 161#endif /* !_NETINET_TCP_H_ */ | 162#endif 163 164#endif /* !_NETINET_TCP_H_ */ |