attr_dissector_fn_t
[wireshark-sm.git] / epan / aftypes.h
blobd822050f7c4dfe5aaf60d9666a4aaf7eee7230e0
1 /** @file
3 * AF_ values on various OSes; they're used in some network protocols, as
4 * well as in BSD DLT_NULL and DLT_LOOP headers.
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
9 * This file created and by Mike Hall <mlh@io.com>
10 * Copyright 1998
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #ifndef __AFTYPES_H__
16 #define __AFTYPES_H__
18 #include <epan/value_string.h>
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
24 #define COMMON_AF_UNSPEC 0
25 /* Pretty much everybody uses the same value for AF_INET. */
26 #define COMMON_AF_INET 2
28 /* BSD AF_ values. */
29 #define BSD_AF_INET 2
30 #define BSD_AF_ISO 7
31 #define BSD_AF_APPLETALK 16
32 #define BSD_AF_IPX 23
33 #define BSD_AF_INET6_BSD 24 /* NetBSD, OpenBSD, BSD/OS */
34 #define BSD_AF_INET6_FREEBSD 28 /* FreeBSD, DragonFly BSD */
35 #define BSD_AF_INET6_DARWIN 30 /* macOS, iOS, anything else Darwin-based */
37 /* Linux AF_ values. */
38 #define LINUX_AF_UNSPEC 0
39 #define LINUX_AF_LOCAL 1
40 #define LINUX_AF_INET 2
41 #define LINUX_AF_AX25 3
42 #define LINUX_AF_IPX 4
43 #define LINUX_AF_APPLETALK 5
44 #define LINUX_AF_NETROM 6
45 #define LINUX_AF_BRIDGE 7
46 #define LINUX_AF_ATMPVC 8
47 #define LINUX_AF_X25 9
48 #define LINUX_AF_INET6 10
49 #define LINUX_AF_ROSE 11
50 #define LINUX_AF_DECnet 12
51 #define LINUX_AF_NETBEUI 13
52 #define LINUX_AF_SECURITY 14
53 #define LINUX_AF_KEY 15
54 #define LINUX_AF_NETLINK 16
55 #define LINUX_AF_PACKET 17
56 #define LINUX_AF_ASH 18
57 #define LINUX_AF_ECONET 19
58 #define LINUX_AF_ATMSVC 20
59 #define LINUX_AF_RDS 21
60 #define LINUX_AF_SNA 22
61 #define LINUX_AF_IRDA 23
62 #define LINUX_AF_PPPOX 24
63 #define LINUX_AF_WANPIPE 25
64 #define LINUX_AF_LLC 26
65 #define LINUX_AF_CAN 29
66 #define LINUX_AF_TIPC 30
67 #define LINUX_AF_BLUETOOTH 31
68 #define LINUX_AF_IUCV 32
69 #define LINUX_AF_RXRPC 33
70 #define LINUX_AF_ISDN 34
71 #define LINUX_AF_PHONET 35
72 #define LINUX_AF_IEEE802154 36
73 #define LINUX_AF_CAIF 37
74 #define LINUX_AF_ALG 38
75 #define LINUX_AF_NFC 39
77 extern value_string_ext linux_af_vals_ext;
79 /* Solaris AF_ values. */
80 #define SOLARIS_AF_INET 2
81 #define SOLARIS_AF_INET6 26
83 /* Winsock AF_ values. */
85 #define WINSOCK_AF_UNSPEC 0
86 #define WINSOCK_AF_UNIX 1
87 #define WINSOCK_AF_INET 2
88 #define WINSOCK_AF_IMPLINK 3
89 #define WINSOCK_AF_PUP 4
90 #define WINSOCK_AF_CHAOS 5
91 #define WINSOCK_AF_IPX 6
92 #define WINSOCK_AF_NS 6
93 #define WINSOCK_AF_ISO 7
94 #define WINSOCK_AF_OSI WINSOCK_AF_ISO
95 #define WINSOCK_AF_ECMA 8
96 #define WINSOCK_AF_DATAKIT 9
97 #define WINSOCK_AF_CCITT 10
98 #define WINSOCK_AF_SNA 11
99 #define WINSOCK_AF_DECnet 12
100 #define WINSOCK_AF_DLI 13
101 #define WINSOCK_AF_LAT 14
102 #define WINSOCK_AF_HYLINK 15
103 #define WINSOCK_AF_APPLETALK 16
104 #define WINSOCK_AF_NETBIOS 17
105 #define WINSOCK_AF_VOICEVIEW 18
106 #define WINSOCK_AF_FIREFOX 19
107 #define WINSOCK_AF_UNKNOWN1 20
108 #define WINSOCK_AF_BAN 21
109 #define WINSOCK_AF_ATM 22
110 #define WINSOCK_AF_INET6 23
111 #define WINSOCK_AF_BTH 32
113 #ifdef __cplusplus
115 #endif /* __cplusplus */
117 #endif /* aftypes.h */