af.h revision 1.1.1.1.14.1 1 1.1 christos /*
2 1.1 christos * Copyright (c) 1998-2006 The TCPDUMP project
3 1.1 christos *
4 1.1 christos * Redistribution and use in source and binary forms, with or without
5 1.1 christos * modification, are permitted provided that: (1) source code
6 1.1 christos * distributions retain the above copyright notice and this paragraph
7 1.1 christos * in its entirety, and (2) distributions including binary code include
8 1.1 christos * the above copyright notice and this paragraph in its entirety in
9 1.1 christos * the documentation or other materials provided with the distribution.
10 1.1 christos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
11 1.1 christos * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
12 1.1 christos * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13 1.1 christos * FOR A PARTICULAR PURPOSE.
14 1.1 christos *
15 1.1 christos * Original code by Hannes Gredler (hannes (at) juniper.net)
16 1.1 christos */
17 1.1 christos
18 1.1 christos extern const struct tok af_values[];
19 1.1 christos extern const struct tok bsd_af_values[];
20 1.1 christos
21 1.1 christos /* RFC1700 address family numbers */
22 1.1 christos #define AFNUM_INET 1
23 1.1 christos #define AFNUM_INET6 2
24 1.1 christos #define AFNUM_NSAP 3
25 1.1 christos #define AFNUM_HDLC 4
26 1.1 christos #define AFNUM_BBN1822 5
27 1.1 christos #define AFNUM_802 6
28 1.1 christos #define AFNUM_E163 7
29 1.1 christos #define AFNUM_E164 8
30 1.1 christos #define AFNUM_F69 9
31 1.1 christos #define AFNUM_X121 10
32 1.1 christos #define AFNUM_IPX 11
33 1.1 christos #define AFNUM_ATALK 12
34 1.1 christos #define AFNUM_DECNET 13
35 1.1 christos #define AFNUM_BANYAN 14
36 1.1 christos #define AFNUM_E164NSAP 15
37 1.1 christos #define AFNUM_VPLS 25
38 1.1 christos /* draft-kompella-ppvpn-l2vpn */
39 1.1 christos #define AFNUM_L2VPN 196 /* still to be approved by IANA */
40 1.1 christos
41 1.1 christos /*
42 1.1 christos * BSD AF_ values.
43 1.1 christos *
44 1.1 christos * Unfortunately, the BSDs don't all use the same value for AF_INET6,
45 1.1 christos * so, because we want to be able to read captures from all of the BSDs,
46 1.1 christos * we check for all of them.
47 1.1 christos */
48 1.1 christos #define BSD_AFNUM_INET 2
49 1.1 christos #define BSD_AFNUM_NS 6 /* XEROX NS protocols */
50 1.1 christos #define BSD_AFNUM_ISO 7
51 1.1 christos #define BSD_AFNUM_APPLETALK 16
52 1.1 christos #define BSD_AFNUM_IPX 23
53 1.1.1.1.14.1 snj #define BSD_AFNUM_INET6_BSD 24 /* NetBSD, OpenBSD, BSD/OS, Npcap */
54 1.1.1.1.14.1 snj #define BSD_AFNUM_INET6_FREEBSD 28 /* FreeBSD */
55 1.1.1.1.14.1 snj #define BSD_AFNUM_INET6_DARWIN 30 /* OS X, iOS, other Darwin-based OSes */
56