in.h (33440) | in.h (33804) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)in.h 8.3 (Berkeley) 1/3/94 | 1/* 2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)in.h 8.3 (Berkeley) 1/3/94 |
34 * $Id: in.h,v 1.27 1997/09/25 00:34:35 wollman Exp $ | 34 * $Id: in.h,v 1.28 1998/02/16 19:23:53 guido Exp $ |
35 */ 36 37#ifndef _NETINET_IN_H_ 38#define _NETINET_IN_H_ 39 40/* 41 * Constants and structures defined by the internet system, 42 * Per RFC 790, September 1981, and numerous additions. 43 */ 44 45/* | 35 */ 36 37#ifndef _NETINET_IN_H_ 38#define _NETINET_IN_H_ 39 40/* 41 * Constants and structures defined by the internet system, 42 * Per RFC 790, September 1981, and numerous additions. 43 */ 44 45/* |
46 * Protocols | 46 * Protocols (RFC 1700) |
47 */ 48#define IPPROTO_IP 0 /* dummy for IP */ 49#define IPPROTO_ICMP 1 /* control message protocol */ 50#define IPPROTO_IGMP 2 /* group mgmt protocol */ 51#define IPPROTO_GGP 3 /* gateway^2 (deprecated) */ 52#define IPPROTO_IPIP 4 /* IP encapsulation in IP */ 53#define IPPROTO_TCP 6 /* tcp */ | 47 */ 48#define IPPROTO_IP 0 /* dummy for IP */ 49#define IPPROTO_ICMP 1 /* control message protocol */ 50#define IPPROTO_IGMP 2 /* group mgmt protocol */ 51#define IPPROTO_GGP 3 /* gateway^2 (deprecated) */ 52#define IPPROTO_IPIP 4 /* IP encapsulation in IP */ 53#define IPPROTO_TCP 6 /* tcp */ |
54#define IPPROTO_ST 7 /* Stream protocol II */ |
|
54#define IPPROTO_EGP 8 /* exterior gateway protocol */ | 55#define IPPROTO_EGP 8 /* exterior gateway protocol */ |
56#define IPPROTO_PIGP 9 /* private interior gateway */ 57#define IPPROTO_RCCMON 10 /* BBN RCC Monitoring */ 58#define IPPROTO_NVPII 11 /* network voice protocol*/ |
|
55#define IPPROTO_PUP 12 /* pup */ | 59#define IPPROTO_PUP 12 /* pup */ |
60#define IPPROTO_ARGUS 13 /* Argus */ 61#define IPPROTO_EMCON 14 /* EMCON */ 62#define IPPROTO_XNET 15 /* Cross Net Debugger */ 63#define IPPROTO_CHAOS 16 /* Chaos*/ |
|
56#define IPPROTO_UDP 17 /* user datagram protocol */ | 64#define IPPROTO_UDP 17 /* user datagram protocol */ |
65#define IPPROTO_MUX 18 /* Multiplexing */ 66#define IPPROTO_MEAS 19 /* DCN Measurement Subsystems */ 67#define IPPROTO_HMP 20 /* Host Monitoring */ 68#define IPPROTO_PRM 21 /* Packet Radio Measurement */ |
|
57#define IPPROTO_IDP 22 /* xns idp */ | 69#define IPPROTO_IDP 22 /* xns idp */ |
70#define IPPROTO_TRUNK1 23 /* Trunk-1 */ 71#define IPPROTO_TRUNK2 24 /* Trunk-2 */ 72#define IPPROTO_LEAF1 25 /* Leaf-1 */ 73#define IPPROTO_LEAF2 26 /* Leaf-2 */ 74#define IPPROTO_RDP 27 /* Reliable Data */ 75#define IPPROTO_IRTP 28 /* Reliable Transaction */ |
|
58#define IPPROTO_TP 29 /* tp-4 w/ class negotiation */ | 76#define IPPROTO_TP 29 /* tp-4 w/ class negotiation */ |
77#define IPPROTO_BLT 30 /* Bulk Data Transfer */ 78#define IPPROTO_NSP 31 /* Network Services */ 79#define IPPROTO_INP 32 /* Merit Internodal */ 80#define IPPROTO_SEP 33 /* Sequential Exchange */ 81#define IPPROTO_3PC 34 /* Third Party Connect */ 82#define IPPROTO_IDPR 35 /* InterDomain Policy Routing */ 83#define IPPROTO_XTP 36 /* XTP */ 84#define IPPROTO_DDP 37 /* Datagram Delivery */ 85#define IPPROTO_CMTP 38 /* Control Message Transport */ 86#define IPPROTO_TPXX 39 /* TP++ Transport */ 87#define IPPROTO_IL 40 /* IL transport protocol */ 88#define IPPROTO_SIP 41 /* Simple Internet Protocol */ 89#define IPPROTO_SDRP 42 /* Source Demand Routing */ 90#define IPPROTO_SIPSR 43 /* SIP Source Route */ 91#define IPPROTO_SIPFRAG 44 /* SIP Fragment */ 92#define IPPROTO_IDRP 45 /* InterDomain Routing*/ |
|
59#define IPPROTO_RSVP 46 /* resource reservation */ | 93#define IPPROTO_RSVP 46 /* resource reservation */ |
94#define IPPROTO_GRE 47 /* General Routing Encap. */ 95#define IPPROTO_MHRP 48 /* Mobile Host Routing */ 96#define IPPROTO_BHA 49 /* BHA */ 97#define IPPROTO_ESP 50 /* SIPP Encap Sec. Payload */ 98#define IPPROTO_AH 51 /* SIPP Auth Header */ 99#define IPPROTO_INLSP 52 /* Integ. Net Layer Security */ 100#define IPPROTO_SWIPE 53 /* IP with encryption */ 101#define IPPROTO_NHRP 54 /* Next Hop Resolution */ 102/* 55-60: Unassigned */ 103#define IPPROTO_AHIP 61 /* any host internal protocol */ 104#define IPPROTO_CFTP 62 /* CFTP */ 105#define IPPROTO_HELLO 63 /* "hello" routing protocol */ 106#define IPPROTO_SATEXPAK 64 /* SATNET/Backroom EXPAK */ 107#define IPPROTO_KRYPTOLAN 65 /* Kryptolan */ 108#define IPPROTO_RVD 66 /* Remote Virtual Disk */ 109#define IPPROTO_IPPC 67 /* Pluribus Packet Core */ 110#define IPPROTO_ADFS 68 /* Any distributed FS */ 111#define IPPROTO_SATMON 69 /* Satnet Monitoring */ 112#define IPPROTO_VISA 70 /* VISA Protocol */ 113#define IPPROTO_IPCV 71 /* Packet Core Utility */ 114#define IPPROTO_CPNX 72 /* Comp. Prot. Net. Executive */ 115#define IPPROTO_CPHB 73 /* Comp. Prot. HeartBeat */ 116#define IPPROTO_WSN 74 /* Wang Span Network */ 117#define IPPROTO_PVP 75 /* Packet Video Protocol */ 118#define IPPROTO_BRSATMON 76 /* BackRoom SATNET Monitoring */ 119#define IPPROTO_ND 77 /* Sun net disk proto (temp.) */ 120#define IPPROTO_WBMON 78 /* WIDEBAND Monitoring */ 121#define IPPROTO_WBEXPAK 79 /* WIDEBAND EXPAK */ |
|
60#define IPPROTO_EON 80 /* ISO cnlp */ | 122#define IPPROTO_EON 80 /* ISO cnlp */ |
123#define IPPROTO_VMTP 81 /* VMTP */ 124#define IPPROTO_SVMTP 82 /* Secure VMTP */ 125#define IPPROTO_VINES 83 /* Banyon VINES */ 126#define IPPROTO_TTP 84 /* TTP */ 127#define IPPROTO_IGP 85 /* NSFNET-IGP */ 128#define IPPROTO_DGP 86 /* dissimilar gateway prot. */ 129#define IPPROTO_TCP 87 /* TCF */ 130#define IPPROTO_IGRP 88 /* Cisco/GXS IGRP */ 131#define IPPROTO_OSPFIGP 89 /* OSPFIGP */ 132#define IPPROTO_SRPC 90 /* Strite RPC protocol */ 133#define IPPROTO_LARP 91 /* Locus Address Resoloution */ 134#define IPPROTO_MTP 92 /* Multicast Transport */ 135#define IPPROTO_AX25 93 /* AX.25 Frames */ 136#define IPPROTO_IPEIP 94 /* IP encapsulated in IP */ 137#define IPPROTO_MICP 95 /* Mobile Int.ing control */ 138#define IPPROTO_SCCSP 96 /* Semaphore Comm. security */ 139#define IPPROTO_ETHERIP 97 /* Ethernet IP encapsulation */ |
|
61#define IPPROTO_ENCAP 98 /* encapsulation header */ | 140#define IPPROTO_ENCAP 98 /* encapsulation header */ |
62 | 141#define IPPROTO_APES 99 /* any private encr. scheme */ 142#define IPPROTO_GMTP 100 /* GMTP*/ 143/* 101-254: Unassigned */ 144/* 255: Reserved */ 145/* BSD Private, local use, namespace incursion */ |
63#define IPPROTO_DIVERT 254 /* divert pseudo-protocol */ 64#define IPPROTO_RAW 255 /* raw IP packet */ 65#define IPPROTO_MAX 256 66 67 68/* 69 * Local port number conventions: 70 * --- 283 unchanged lines hidden --- | 146#define IPPROTO_DIVERT 254 /* divert pseudo-protocol */ 147#define IPPROTO_RAW 255 /* raw IP packet */ 148#define IPPROTO_MAX 256 149 150 151/* 152 * Local port number conventions: 153 * --- 283 unchanged lines hidden --- |