root / lab4 / .minix-src / include / net / gen / socket.h @ 14
History | View | Annotate | Download (1.36 KB)
1 | 13 | up20180614 | /*
|
---|---|---|---|
2 | server/ip/gen/socket.h
|
||
3 | */
|
||
4 | |||
5 | #ifndef __SERVER__IP__GEN__SOCKET_H__
|
||
6 | #define __SERVER__IP__GEN__SOCKET_H__
|
||
7 | |||
8 | /* From SunOS: /usr/include/sys/socketh */
|
||
9 | |||
10 | /*
|
||
11 | * Address families.
|
||
12 | */
|
||
13 | #define AF_UNSPEC 0 /* unspecified */ |
||
14 | #define AF_UNIX 1 /* local to host (pipes, portals) */ |
||
15 | #define AF_INET 2 /* internetwork: UDP, TCP, etc. */ |
||
16 | #define AF_IMPLINK 3 /* arpanet imp addresses */ |
||
17 | #define AF_PUP 4 /* pup protocols: e.g. BSP */ |
||
18 | #define AF_CHAOS 5 /* mit CHAOS protocols */ |
||
19 | #define AF_NS 6 /* XEROX NS protocols */ |
||
20 | #define AF_NBS 7 /* nbs protocols */ |
||
21 | #define AF_ECMA 8 /* european computer manufacturers */ |
||
22 | #define AF_DATAKIT 9 /* datakit protocols */ |
||
23 | #define AF_CCITT 10 /* CCITT protocols, X.25 etc */ |
||
24 | #define AF_SNA 11 /* IBM SNA */ |
||
25 | #define AF_DECnet 12 /* DECnet */ |
||
26 | #define AF_DLI 13 /* Direct data link interface */ |
||
27 | #define AF_LAT 14 /* LAT */ |
||
28 | #define AF_HYLINK 15 /* NSC Hyperchannel */ |
||
29 | #define AF_APPLETALK 16 /* Apple Talk */ |
||
30 | |||
31 | #define AF_NIT 17 /* Network Interface Tap */ |
||
32 | #define AF_802 18 /* IEEE 802.2, also ISO 8802 */ |
||
33 | #define AF_OSI 19 /* umbrella for all families used |
||
34 | * by OSI (e.g. protosw lookup) */
|
||
35 | #define AF_X25 20 /* CCITT X.25 in particular */ |
||
36 | #define AF_OSINET 21 /* AFI = 47, IDI = 4 */ |
||
37 | #define AF_GOSIP 22 /* U.S. Government OSI */ |
||
38 | #define AF_INET6 23 /* IP version 6 */ |
||
39 | |||
40 | #define AF_MAX 23 |
||
41 | |||
42 | #endif /* __SERVER__IP__GEN__SOCKET_H__ */ |