tcp.h (70826) | tcp.h (70854) |
---|---|
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 70826 2001-01-09 03:10:30Z rwatson $ | 34 * $FreeBSD: head/sys/netinet/tcp.h 70854 2001-01-09 18:26:17Z rwatson $ |
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 --- 21 unchanged lines hidden (view full) --- 64#define TH_FIN 0x01 65#define TH_SYN 0x02 66#define TH_RST 0x04 67#define TH_PUSH 0x08 68#define TH_ACK 0x10 69#define TH_URG 0x20 70#define TH_ECE 0x40 71#define TH_CWR 0x80 | 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 --- 21 unchanged lines hidden (view full) --- 64#define TH_FIN 0x01 65#define TH_SYN 0x02 66#define TH_RST 0x04 67#define TH_PUSH 0x08 68#define TH_ACK 0x10 69#define TH_URG 0x20 70#define TH_ECE 0x40 71#define TH_CWR 0x80 |
72#define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_ACK|TH_URG|TH_ECE|TH_CWR) | 72#define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_ACK|TH_URG|TH_ECE|TH_CWR) |
73 74 u_short th_win; /* window */ 75 u_short th_sum; /* checksum */ 76 u_short th_urp; /* urgent pointer */ 77}; 78 79#define TCPOPT_EOL 0 80#define TCPOPT_NOP 1 --- 57 unchanged lines hidden --- | 73 74 u_short th_win; /* window */ 75 u_short th_sum; /* checksum */ 76 u_short th_urp; /* urgent pointer */ 77}; 78 79#define TCPOPT_EOL 0 80#define TCPOPT_NOP 1 --- 57 unchanged lines hidden --- |