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.
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
8 * This file created and by Mike Hall <mlh@io.com>
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.
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.
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.
29 #include <epan/value_string.h>
33 #endif /* __cplusplus */
35 /* Pretty much everybody uses the same value for AF_INET. */
36 #define COMMON_AF_INET 2
41 #define BSD_AF_APPLETALK 16
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
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
87 extern value_string_ext linux_af_vals_ext;
89 /* Solaris AF_ values. */
90 #define SOLARIS_AF_INET 2
91 #define SOLARIS_AF_INET6 26
93 /* Winsock AF_ values. */
94 #define WINSOCK_AF_INET 2
95 #define WINSOCK_AF_IPX 6
96 #define WINSOCK_AF_INET6 23
100 #endif /* __cplusplus */
102 #endif /* aftypes.h */