1 /* @(#) $Header: /tcpdump/master/tcpdump/af.h,v 1.3 2006-03-23 14:58:44 hannes Exp $ (LBL) */
4 * Copyright (c) 1998-2006 The TCPDUMP project
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that: (1) source code
8 * distributions retain the above copyright notice and this paragraph
9 * in its entirety, and (2) distributions including binary code include
10 * the above copyright notice and this paragraph in its entirety in
11 * the documentation or other materials provided with the distribution.
12 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
13 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
14 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 * FOR A PARTICULAR PURPOSE.
17 * Original code by Hannes Gredler (hannes@juniper.net)
20 extern const struct tok af_values
[];
21 extern const struct tok bsd_af_values
[];
23 /* RFC1700 address family numbers */
28 #define AFNUM_BBN1822 5
35 #define AFNUM_ATALK 12
36 #define AFNUM_DECNET 13
37 #define AFNUM_BANYAN 14
38 #define AFNUM_E164NSAP 15
40 /* draft-kompella-ppvpn-l2vpn */
41 #define AFNUM_L2VPN 196 /* still to be approved by IANA */
46 * Unfortunately, the BSDs don't all use the same value for AF_INET6,
47 * so, because we want to be able to read captures from all of the BSDs,
48 * we check for all of them.
50 #define BSD_AFNUM_INET 2
51 #define BSD_AFNUM_NS 6 /* XEROX NS protocols */
52 #define BSD_AFNUM_ISO 7
53 #define BSD_AFNUM_APPLETALK 16
54 #define BSD_AFNUM_IPX 23
55 #define BSD_AFNUM_INET6_BSD 24 /* OpenBSD (and probably NetBSD), BSD/OS */
56 #define BSD_AFNUM_INET6_FREEBSD 28
57 #define BSD_AFNUM_INET6_DARWIN 30