socket.h (15701) | socket.h (16368) |
---|---|
1/* 2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 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 * @(#)socket.h 8.4 (Berkeley) 2/21/94 | 1/* 2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 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 * @(#)socket.h 8.4 (Berkeley) 2/21/94 |
34 * $Id: socket.h,v 1.10 1996/02/07 16:19:02 wollman Exp $ | 34 * $Id: socket.h,v 1.11 1996/05/09 20:15:21 wollman Exp $ |
35 */ 36 37#ifndef _SYS_SOCKET_H_ 38#define _SYS_SOCKET_H_ 39 40/* 41 * Definitions related to sockets: types, address families, options. 42 */ --- 76 unchanged lines hidden (view full) --- 119#define AF_COIP 20 /* connection-oriented IP, aka ST II */ 120#define AF_CNT 21 /* Computer Network Technology */ 121#define pseudo_AF_RTIP 22 /* Help Identify RTIP packets */ 122#define AF_IPX 23 /* Novell Internet Protocol */ 123#define AF_SIP 24 /* Simple Internet Protocol */ 124#define pseudo_AF_PIP 25 /* Help Identify PIP packets */ 125#define AF_ISDN 26 /* Integrated Services Digital Network*/ 126#define AF_E164 AF_ISDN /* CCITT E.164 recommendation */ | 35 */ 36 37#ifndef _SYS_SOCKET_H_ 38#define _SYS_SOCKET_H_ 39 40/* 41 * Definitions related to sockets: types, address families, options. 42 */ --- 76 unchanged lines hidden (view full) --- 119#define AF_COIP 20 /* connection-oriented IP, aka ST II */ 120#define AF_CNT 21 /* Computer Network Technology */ 121#define pseudo_AF_RTIP 22 /* Help Identify RTIP packets */ 122#define AF_IPX 23 /* Novell Internet Protocol */ 123#define AF_SIP 24 /* Simple Internet Protocol */ 124#define pseudo_AF_PIP 25 /* Help Identify PIP packets */ 125#define AF_ISDN 26 /* Integrated Services Digital Network*/ 126#define AF_E164 AF_ISDN /* CCITT E.164 recommendation */ |
127#define pseudo_AF_KEY 27 /* Internal key-management function */ |
|
127 | 128 |
128#define AF_MAX 27 | 129#define AF_MAX 28 |
129 130/* 131 * Structure used by kernel to store most 132 * addresses. 133 */ 134struct sockaddr { 135 u_char sa_len; /* total length */ 136 u_char sa_family; /* address family */ --- 36 unchanged lines hidden (view full) --- 173#define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ 174#define PF_COIP AF_COIP 175#define PF_CNT AF_CNT 176#define PF_SIP AF_SIP 177#define PF_IPX AF_IPX /* same format as AF_NS */ 178#define PF_RTIP pseudo_AF_FTIP /* same format as AF_INET */ 179#define PF_PIP pseudo_AF_PIP 180#define PF_ISDN AF_ISDN | 130 131/* 132 * Structure used by kernel to store most 133 * addresses. 134 */ 135struct sockaddr { 136 u_char sa_len; /* total length */ 137 u_char sa_family; /* address family */ --- 36 unchanged lines hidden (view full) --- 174#define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ 175#define PF_COIP AF_COIP 176#define PF_CNT AF_CNT 177#define PF_SIP AF_SIP 178#define PF_IPX AF_IPX /* same format as AF_NS */ 179#define PF_RTIP pseudo_AF_FTIP /* same format as AF_INET */ 180#define PF_PIP pseudo_AF_PIP 181#define PF_ISDN AF_ISDN |
182#define PF_KEY AF_KEY |
|
181 182#define PF_MAX AF_MAX 183 184/* 185 * Definitions for network related sysctl, CTL_NET. 186 * 187 * Second level is protocol family. 188 * Third level is protocol number. --- 24 unchanged lines hidden (view full) --- 213 { "link_layer", CTLTYPE_NODE }, \ 214 { "xtp", CTLTYPE_NODE }, \ 215 { "coip", CTLTYPE_NODE }, \ 216 { "cnt", CTLTYPE_NODE }, \ 217 { "rtip", CTLTYPE_NODE }, \ 218 { "ipx", CTLTYPE_NODE }, \ 219 { "sip", CTLTYPE_NODE }, \ 220 { "pip", CTLTYPE_NODE }, \ | 183 184#define PF_MAX AF_MAX 185 186/* 187 * Definitions for network related sysctl, CTL_NET. 188 * 189 * Second level is protocol family. 190 * Third level is protocol number. --- 24 unchanged lines hidden (view full) --- 215 { "link_layer", CTLTYPE_NODE }, \ 216 { "xtp", CTLTYPE_NODE }, \ 217 { "coip", CTLTYPE_NODE }, \ 218 { "cnt", CTLTYPE_NODE }, \ 219 { "rtip", CTLTYPE_NODE }, \ 220 { "ipx", CTLTYPE_NODE }, \ 221 { "sip", CTLTYPE_NODE }, \ 222 { "pip", CTLTYPE_NODE }, \ |
223 { "isdn", CTLTYPE_NODE }, \ 224 { "key", CTLTYPE_NODE }, \ |
|
221} 222 223/* 224 * PF_ROUTE - Routing table 225 * 226 * Three additional levels are defined: 227 * Fourth: address family, 0 is wildcard 228 * Fifth: type of info, defined below --- 122 unchanged lines hidden --- | 225} 226 227/* 228 * PF_ROUTE - Routing table 229 * 230 * Three additional levels are defined: 231 * Fourth: address family, 0 is wildcard 232 * Fifth: type of info, defined below --- 122 unchanged lines hidden --- |