Deleted Added
full compact
ip.h (2169) ip.h (8293)
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 * @(#)ip.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 * @(#)ip.h 8.1 (Berkeley) 6/10/93
34 * $Id: ip.h,v 1.2 1994/08/02 07:48:30 davidg Exp $
34 * $Id: ip.h,v 1.3 1994/08/21 05:27:30 paul Exp $
35 */
36
37#ifndef _NETINET_IP_H_
38#define _NETINET_IP_H_
39
40/*
41 * Definitions for internet protocol version 4.
42 * Per RFC 791, September 1981.

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

75#define IP_MAXPACKET 65535 /* maximum packet size */
76
77/*
78 * Definitions for IP type of service (ip_tos)
79 */
80#define IPTOS_LOWDELAY 0x10
81#define IPTOS_THROUGHPUT 0x08
82#define IPTOS_RELIABILITY 0x04
35 */
36
37#ifndef _NETINET_IP_H_
38#define _NETINET_IP_H_
39
40/*
41 * Definitions for internet protocol version 4.
42 * Per RFC 791, September 1981.

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

75#define IP_MAXPACKET 65535 /* maximum packet size */
76
77/*
78 * Definitions for IP type of service (ip_tos)
79 */
80#define IPTOS_LOWDELAY 0x10
81#define IPTOS_THROUGHPUT 0x08
82#define IPTOS_RELIABILITY 0x04
83#define IPTOS_MINCOST 0x02
83
84/*
85 * Definitions for IP precedence (also in ip_tos) (hopefully unused)
86 */
87#define IPTOS_PREC_NETCONTROL 0xe0
88#define IPTOS_PREC_INTERNETCONTROL 0xc0
89#define IPTOS_PREC_CRITIC_ECP 0xa0
90#define IPTOS_PREC_FLASHOVERRIDE 0x80
91#define IPTOS_PREC_FLASH 0x60
92#define IPTOS_PREC_IMMEDIATE 0x40
93#define IPTOS_PREC_PRIORITY 0x20
84
85/*
86 * Definitions for IP precedence (also in ip_tos) (hopefully unused)
87 */
88#define IPTOS_PREC_NETCONTROL 0xe0
89#define IPTOS_PREC_INTERNETCONTROL 0xc0
90#define IPTOS_PREC_CRITIC_ECP 0xa0
91#define IPTOS_PREC_FLASHOVERRIDE 0x80
92#define IPTOS_PREC_FLASH 0x60
93#define IPTOS_PREC_IMMEDIATE 0x40
94#define IPTOS_PREC_PRIORITY 0x20
94#define IPTOS_PREC_ROUTINE 0x10
95#define IPTOS_PREC_ROUTINE 0x00
95
96/*
97 * Definitions for options.
98 */
99#define IPOPT_COPIED(o) ((o)&0x80)
100#define IPOPT_CLASS(o) ((o)&0x60)
101#define IPOPT_NUMBER(o) ((o)&0x1f)
102

--- 72 unchanged lines hidden ---
96
97/*
98 * Definitions for options.
99 */
100#define IPOPT_COPIED(o) ((o)&0x80)
101#define IPOPT_CLASS(o) ((o)&0x60)
102#define IPOPT_NUMBER(o) ((o)&0x1f)
103

--- 72 unchanged lines hidden ---