- 论坛徽章:
- 0
|
进哪家馆子点哪家菜,有什么好为什么的?
FreeBSD6.0:
- /*
- * Address families.
- */
- #define AF_UNSPEC 0 /* unspecified */
- #if __BSD_VISIBLE
- #define AF_LOCAL AF_UNIX /* local to host (pipes, portals) */
- #endif
- #define AF_UNIX 1 /* standardized name for AF_LOCAL */
- #define AF_INET 2 /* internetwork: UDP, TCP, etc. */
- #if __BSD_VISIBLE
- #define AF_IMPLINK 3 /* arpanet imp addresses */
- #define AF_PUP 4 /* pup protocols: e.g. BSP */
- #define AF_CHAOS 5 /* mit CHAOS protocols */
- #define AF_NETBIOS 6 /* SMB protocols */
- #define AF_ISO 7 /* ISO protocols */
- #define AF_OSI AF_ISO
- #define AF_ECMA 8 /* European computer manufacturers */
- #define AF_DATAKIT 9 /* datakit protocols */
- #define AF_CCITT 10 /* CCITT protocols, X.25 etc */
- #define AF_SNA 11 /* IBM SNA */
- #define AF_DECnet 12 /* DECnet */
- #define AF_DLI 13 /* DEC Direct data link interface */
- #define AF_LAT 14 /* LAT */
- #define AF_HYLINK 15 /* NSC Hyperchannel */
- #define AF_APPLETALK 16 /* Apple Talk */
- #define AF_ROUTE 17 /* Internal Routing Protocol */
- #define AF_LINK 18 /* Link layer interface */
- #define pseudo_AF_XTP 19 /* eXpress Transfer Protocol (no AF) */
- #define AF_COIP 20 /* connection-oriented IP, aka ST II */
- #define AF_CNT 21 /* Computer Network Technology */
- #define pseudo_AF_RTIP 22 /* Help Identify RTIP packets */
- #define AF_IPX 23 /* Novell Internet Protocol */
- #define AF_SIP 24 /* Simple Internet Protocol */
- #define pseudo_AF_PIP 25 /* Help Identify PIP packets */
- #define AF_ISDN 26 /* Integrated Services Digital Network*/
- #define AF_E164 AF_ISDN /* CCITT E.164 recommendation */
- #define pseudo_AF_KEY 27 /* Internal key-management function */
- #endif
- #define AF_INET6 28 /* IPv6 */
- #if __BSD_VISIBLE
- #define AF_NATM 29 /* native ATM access */
- #define AF_ATM 30 /* ATM */
- #define pseudo_AF_HDRCMPLT 31 /* Used by BPF to not rewrite headers
- * in interface output routine
- */
- #define AF_NETGRAPH 32 /* Netgraph sockets */
- #define AF_SLOW 33 /* 802.3ad slow protocol */
- #define AF_SCLUSTER 34 /* Sitara cluster protocol */
- #define AF_ARP 35
- #define AF_BLUETOOTH 36 /* Bluetooth sockets */
- #define AF_MAX 37
- #endif
复制代码
Linux2.6.16:
- /* Supported address families. */
- #define AF_UNSPEC 0
- #define AF_UNIX 1 /* Unix domain sockets */
- #define AF_LOCAL 1 /* POSIX name for AF_UNIX */
- #define AF_INET 2 /* Internet IP Protocol */
- #define AF_AX25 3 /* Amateur Radio AX.25 */
- #define AF_IPX 4 /* Novell IPX */
- #define AF_APPLETALK 5 /* AppleTalk DDP */
- #define AF_NETROM 6 /* Amateur Radio NET/ROM */
- #define AF_BRIDGE 7 /* Multiprotocol bridge */
- #define AF_ATMPVC 8 /* ATM PVCs */
- #define AF_X25 9 /* Reserved for X.25 project */
- #define AF_INET6 10 /* IP version 6 */
- #define AF_ROSE 11 /* Amateur Radio X.25 PLP */
- #define AF_DECnet 12 /* Reserved for DECnet project */
- #define AF_NETBEUI 13 /* Reserved for 802.2LLC project*/
- #define AF_SECURITY 14 /* Security callback pseudo AF */
- #define AF_KEY 15 /* PF_KEY key management API */
- #define AF_NETLINK 16
- #define AF_ROUTE AF_NETLINK /* Alias to emulate 4.4BSD */
- #define AF_PACKET 17 /* Packet family */
- #define AF_ASH 18 /* Ash */
- #define AF_ECONET 19 /* Acorn Econet */
- #define AF_ATMSVC 20 /* ATM SVCs */
- #define AF_SNA 22 /* Linux SNA Project (nutters!) */
- #define AF_IRDA 23 /* IRDA sockets */
- #define AF_PPPOX 24 /* PPPoX sockets */
- #define AF_WANPIPE 25 /* Wanpipe API Sockets */
- #define AF_LLC 26 /* Linux LLC */
- #define AF_TIPC 30 /* TIPC sockets */
- #define AF_BLUETOOTH 31 /* Bluetooth sockets */
- #define AF_MAX 32 /* For now.. */
复制代码
[ 本帖最后由 雨丝风片 于 2006-6-28 13:12 编辑 ] |
|