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