]>
The Tcpdump Group git mirrors - tcpdump/blob - af.c
2 * Copyright (c) 1998-2006 The TCPDUMP project
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that: (1) source code
6 * distributions retain the above copyright notice and this paragraph
7 * in its entirety, and (2) distributions including binary code include
8 * the above copyright notice and this paragraph in its entirety in
9 * the documentation or other materials provided with the distribution.
10 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
11 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
12 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13 * FOR A PARTICULAR PURPOSE.
15 * Original code by Hannes Gredler (hannes@gredler.at)
20 #include "netdissect-stdinc.h"
21 #include "netdissect.h"
24 const struct tok af_values
[] = {
28 { AFNUM_NSAP
, "NSAP"},
29 { AFNUM_HDLC
, "HDLC"},
30 { AFNUM_BBN1822
, "BBN 1822"},
32 { AFNUM_E163
, "E.163"},
33 { AFNUM_E164
, "E.164"},
35 { AFNUM_X121
, "X.121"},
36 { AFNUM_IPX
, "Novell IPX"},
37 { AFNUM_ATALK
, "Appletalk"},
38 { AFNUM_DECNET
, "Decnet IV"},
39 { AFNUM_BANYAN
, "Banyan Vines"},
40 { AFNUM_E164NSAP
, "E.164 with NSAP subaddress"},
41 { AFNUM_L2VPN
, "Layer-2 VPN"},
42 { AFNUM_VPLS
, "VPLS"},
46 const struct tok bsd_af_values
[] = {
47 { BSD_AF_INET
, "IPv4" },
49 { BSD_AF_ISO
, "ISO" },
50 { BSD_AF_APPLETALK
, "Appletalk" },
51 { BSD_AF_IPX
, "IPX" },
52 { BSD_AF_INET6_BSD
, "IPv6" },
53 { BSD_AF_INET6_FREEBSD
, "IPv6" },
54 { BSD_AF_INET6_DARWIN
, "IPv6" },