2000-11-17 06:02:21 +00:00
|
|
|
/* aftypes.h
|
2008-08-08 19:27:58 +00:00
|
|
|
* AF_ values on various OSes; they're used in some network protocols, as
|
2008-08-08 21:11:44 +00:00
|
|
|
* well as in BSD DLT_NULL and DLT_LOOP headers.
|
2000-11-17 06:02:21 +00:00
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-11-17 06:02:21 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2000-11-17 06:02:21 +00:00
|
|
|
*
|
|
|
|
* This file created and by Mike Hall <mlh@io.com>
|
|
|
|
* Copyright 1998
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-11-17 06:02:21 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-11-17 06:02:21 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-11-17 06:02:21 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2007-01-18 18:43:30 +00:00
|
|
|
#ifndef __AFTYPES_H__
|
|
|
|
#define __AFTYPES_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2000-11-17 06:02:21 +00:00
|
|
|
/* BSD AF_ values. */
|
|
|
|
#define BSD_AF_INET 2
|
|
|
|
#define BSD_AF_ISO 7
|
|
|
|
#define BSD_AF_APPLETALK 16
|
|
|
|
#define BSD_AF_IPX 23
|
|
|
|
#define BSD_AF_INET6_BSD 24 /* OpenBSD (and probably NetBSD), BSD/OS */
|
|
|
|
#define BSD_AF_INET6_FREEBSD 28
|
2002-07-30 07:25:29 +00:00
|
|
|
#define BSD_AF_INET6_DARWIN 30
|
2007-01-18 18:43:30 +00:00
|
|
|
|
2008-08-08 20:07:23 +00:00
|
|
|
/* Linux AF_ values. */
|
|
|
|
#define LINUX_AF_INET 2
|
|
|
|
#define LINUX_AF_INET6 10
|
|
|
|
|
2009-12-03 17:31:03 +00:00
|
|
|
/* Solaris AF_ values. */
|
|
|
|
#define SOLARIS_AF_INET 2
|
|
|
|
#define SOLARIS_AF_INET6 26
|
|
|
|
|
2008-08-08 19:27:58 +00:00
|
|
|
/* Winsock AF_ values. */
|
|
|
|
#define WINSOCK_AF_INET 2
|
|
|
|
#define WINSOCK_AF_IPX 6
|
|
|
|
#define WINSOCK_AF_INET6 23
|
|
|
|
|
2007-01-18 18:43:30 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* aftypes.h */
|