d9c540b127c35021388748405d32204f3aeb8b30
[metze/wireshark/wip.git] / epan / aftypes.h
1 /* aftypes.h
2  * AF_ values on various OSes; they're used in some network protocols, as
3  * well as in BSD DLT_NULL and DLT_LOOP headers.
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  *
8  * This file created and by Mike Hall <mlh@io.com>
9  * Copyright 1998
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25
26 #ifndef __AFTYPES_H__
27 #define __AFTYPES_H__
28
29 #include <epan/value_string.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34
35 /* Pretty much everybody uses the same value for AF_INET. */
36 #define COMMON_AF_INET          2
37
38 /* BSD AF_ values. */
39 #define BSD_AF_INET             2
40 #define BSD_AF_ISO              7
41 #define BSD_AF_APPLETALK        16
42 #define BSD_AF_IPX              23
43 #define BSD_AF_INET6_BSD        24      /* OpenBSD (and probably NetBSD), BSD/OS */
44 #define BSD_AF_INET6_FREEBSD    28
45 #define BSD_AF_INET6_DARWIN     30
46
47 /* Linux AF_ values. */
48 #define LINUX_AF_UNSPEC          0
49 #define LINUX_AF_LOCAL           1
50 #define LINUX_AF_INET            2
51 #define LINUX_AF_AX25            3
52 #define LINUX_AF_IPX             4
53 #define LINUX_AF_APPLETALK       5
54 #define LINUX_AF_NETROM          6
55 #define LINUX_AF_BRIDGE          7
56 #define LINUX_AF_ATMPVC          8
57 #define LINUX_AF_X25             9
58 #define LINUX_AF_INET6          10
59 #define LINUX_AF_ROSE           11
60 #define LINUX_AF_DECnet         12
61 #define LINUX_AF_NETBEUI        13
62 #define LINUX_AF_SECURITY       14
63 #define LINUX_AF_KEY            15
64 #define LINUX_AF_NETLINK        16
65 #define LINUX_AF_PACKET         17
66 #define LINUX_AF_ASH            18
67 #define LINUX_AF_ECONET         19
68 #define LINUX_AF_ATMSVC         20
69 #define LINUX_AF_RDS            21
70 #define LINUX_AF_SNA            22
71 #define LINUX_AF_IRDA           23
72 #define LINUX_AF_PPPOX          24
73 #define LINUX_AF_WANPIPE        25
74 #define LINUX_AF_LLC            26
75 #define LINUX_AF_CAN            29
76 #define LINUX_AF_TIPC           30
77 #define LINUX_AF_BLUETOOTH      31
78 #define LINUX_AF_IUCV           32
79 #define LINUX_AF_RXRPC          33
80 #define LINUX_AF_ISDN           34
81 #define LINUX_AF_PHONET         35
82 #define LINUX_AF_IEEE802154     36
83 #define LINUX_AF_CAIF           37
84 #define LINUX_AF_ALG            38
85 #define LINUX_AF_NFC            39
86
87 extern value_string_ext linux_af_vals_ext;
88
89 /* Solaris AF_ values. */
90 #define SOLARIS_AF_INET         2
91 #define SOLARIS_AF_INET6        26
92
93 /* Winsock AF_ values. */
94 #define WINSOCK_AF_INET         2
95 #define WINSOCK_AF_IPX          6
96 #define WINSOCK_AF_INET6        23
97
98 #ifdef __cplusplus
99 }
100 #endif /* __cplusplus */
101
102 #endif /* aftypes.h */