xref: /freebsd/contrib/tcpdump/af.c (revision 0a7e5f1f02aad2ff5fff1c60f44c6975fd07e1d9)
1b5bfcb5dSMax Laier /*
2b5bfcb5dSMax Laier  * Copyright (c) 1998-2006 The TCPDUMP project
3b5bfcb5dSMax Laier  *
4b5bfcb5dSMax Laier  * Redistribution and use in source and binary forms, with or without
5b5bfcb5dSMax Laier  * modification, are permitted provided that: (1) source code
6b5bfcb5dSMax Laier  * distributions retain the above copyright notice and this paragraph
7b5bfcb5dSMax Laier  * in its entirety, and (2) distributions including binary code include
8b5bfcb5dSMax Laier  * the above copyright notice and this paragraph in its entirety in
9b5bfcb5dSMax Laier  * the documentation or other materials provided with the distribution.
10b5bfcb5dSMax Laier  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
11b5bfcb5dSMax Laier  * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
12b5bfcb5dSMax Laier  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13b5bfcb5dSMax Laier  * FOR A PARTICULAR PURPOSE.
14b5bfcb5dSMax Laier  *
150bff6a5aSEd Maste  * Original code by Hannes Gredler (hannes@gredler.at)
16b5bfcb5dSMax Laier  */
17b5bfcb5dSMax Laier 
18*ee67461eSJoseph Mingrone #include <config.h>
19b5bfcb5dSMax Laier 
20*ee67461eSJoseph Mingrone #include "netdissect-stdinc.h"
213340d773SGleb Smirnoff #include "netdissect.h"
22b5bfcb5dSMax Laier #include "af.h"
23b5bfcb5dSMax Laier 
2427df3f5dSRui Paulo const struct tok af_values[] = {
25b5bfcb5dSMax Laier     { 0,                      "Reserved"},
26b5bfcb5dSMax Laier     { AFNUM_INET,             "IPv4"},
27b5bfcb5dSMax Laier     { AFNUM_INET6,            "IPv6"},
28b5bfcb5dSMax Laier     { AFNUM_NSAP,             "NSAP"},
29b5bfcb5dSMax Laier     { AFNUM_HDLC,             "HDLC"},
30b5bfcb5dSMax Laier     { AFNUM_BBN1822,          "BBN 1822"},
31b5bfcb5dSMax Laier     { AFNUM_802,              "802"},
32b5bfcb5dSMax Laier     { AFNUM_E163,             "E.163"},
33b5bfcb5dSMax Laier     { AFNUM_E164,             "E.164"},
34b5bfcb5dSMax Laier     { AFNUM_F69,              "F.69"},
35b5bfcb5dSMax Laier     { AFNUM_X121,             "X.121"},
36b5bfcb5dSMax Laier     { AFNUM_IPX,              "Novell IPX"},
37b5bfcb5dSMax Laier     { AFNUM_ATALK,            "Appletalk"},
38b5bfcb5dSMax Laier     { AFNUM_DECNET,           "Decnet IV"},
39b5bfcb5dSMax Laier     { AFNUM_BANYAN,           "Banyan Vines"},
40b5bfcb5dSMax Laier     { AFNUM_E164NSAP,         "E.164 with NSAP subaddress"},
41b5bfcb5dSMax Laier     { AFNUM_L2VPN,            "Layer-2 VPN"},
42b5bfcb5dSMax Laier     { AFNUM_VPLS,             "VPLS"},
43b5bfcb5dSMax Laier     { 0, NULL},
44b5bfcb5dSMax Laier };
45b5bfcb5dSMax Laier 
4627df3f5dSRui Paulo const struct tok bsd_af_values[] = {
47b5bfcb5dSMax Laier     { BSD_AFNUM_INET, "IPv4" },
48b5bfcb5dSMax Laier     { BSD_AFNUM_NS, "NS" },
49b5bfcb5dSMax Laier     { BSD_AFNUM_ISO, "ISO" },
50b5bfcb5dSMax Laier     { BSD_AFNUM_APPLETALK, "Appletalk" },
51b5bfcb5dSMax Laier     { BSD_AFNUM_IPX, "IPX" },
52b5bfcb5dSMax Laier     { BSD_AFNUM_INET6_BSD, "IPv6" },
53b5bfcb5dSMax Laier     { BSD_AFNUM_INET6_FREEBSD, "IPv6" },
54b5bfcb5dSMax Laier     { BSD_AFNUM_INET6_DARWIN, "IPv6" },
55b5bfcb5dSMax Laier     { 0, NULL}
56b5bfcb5dSMax Laier };
57