Added some Solaris AF_ types.
[obnox/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  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  *
10  * This file created and by Mike Hall <mlh@io.com>
11  * Copyright 1998
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
26  */
27
28 #ifndef __AFTYPES_H__
29 #define __AFTYPES_H__
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34
35 /* BSD AF_ values. */
36 #define BSD_AF_INET             2
37 #define BSD_AF_ISO              7
38 #define BSD_AF_APPLETALK        16
39 #define BSD_AF_IPX              23
40 #define BSD_AF_INET6_BSD        24      /* OpenBSD (and probably NetBSD), BSD/OS */
41 #define BSD_AF_INET6_FREEBSD    28
42 #define BSD_AF_INET6_DARWIN     30
43
44 /* Linux AF_ values. */
45 #define LINUX_AF_INET           2
46 #define LINUX_AF_INET6          10
47
48 /* Solaris AF_ values. */
49 #define SOLARIS_AF_INET         2
50 #define SOLARIS_AF_INET6        26
51
52 /* Winsock AF_ values. */
53 #define WINSOCK_AF_INET         2
54 #define WINSOCK_AF_IPX          6
55 #define WINSOCK_AF_INET6        23
56
57 #ifdef __cplusplus
58 }
59 #endif /* __cplusplus */
60
61 #endif /* aftypes.h */