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 #include <sys/cdefs.h>
23 static const char rcsid
[] _U_
=
24 "@(#) Header: /tcpdump/master/tcpdump/af.c,v 1.3.2.1 2007/02/26 13:33:17 hannes Exp (LBL)";
26 __RCSID("$NetBSD: tcpdump2rcsid.ex,v 1.1 2001/06/25 20:09:58 itojun Exp $");
34 #include <tcpdump-stdinc.h>
35 #include "interface.h"
38 struct tok af_values
[] = {
40 { AFNUM_INET
, "IPv4"},
41 { AFNUM_INET6
, "IPv6"},
42 { AFNUM_NSAP
, "NSAP"},
43 { AFNUM_HDLC
, "HDLC"},
44 { AFNUM_BBN1822
, "BBN 1822"},
46 { AFNUM_E163
, "E.163"},
47 { AFNUM_E164
, "E.164"},
49 { AFNUM_X121
, "X.121"},
50 { AFNUM_IPX
, "Novell IPX"},
51 { AFNUM_ATALK
, "Appletalk"},
52 { AFNUM_DECNET
, "Decnet IV"},
53 { AFNUM_BANYAN
, "Banyan Vines"},
54 { AFNUM_E164NSAP
, "E.164 with NSAP subaddress"},
55 { AFNUM_L2VPN
, "Layer-2 VPN"},
56 { AFNUM_VPLS
, "VPLS"},
60 struct tok bsd_af_values
[] = {
61 { BSD_AFNUM_INET
, "IPv4" },
62 { BSD_AFNUM_NS
, "NS" },
63 { BSD_AFNUM_ISO
, "ISO" },
64 { BSD_AFNUM_APPLETALK
, "Appletalk" },
65 { BSD_AFNUM_IPX
, "IPX" },
66 { BSD_AFNUM_INET6_BSD
, "IPv6" },
67 { BSD_AFNUM_INET6_FREEBSD
, "IPv6" },
68 { BSD_AFNUM_INET6_DARWIN
, "IPv6" },