X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/26d58ef8a60622cbc63cc3735eb71a6f4e5ed331..0023eaa78f123676bfa9c5fba72ea4b8a59aaa70:/af.c diff --git a/af.c b/af.c index 06d675fe..8c3e4da6 100644 --- a/af.c +++ b/af.c @@ -12,23 +12,16 @@ * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * - * Original code by Hannes Gredler (hannes@juniper.net) + * Original code by Hannes Gredler (hannes@gredler.at) */ -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/af.c,v 1.2 2006-02-27 07:25:27 hannes Exp $ (LBL)"; -#endif +#include -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include "interface.h" +#include "netdissect-stdinc.h" +#include "netdissect.h" #include "af.h" -struct tok af_values[] = { +const struct tok af_values[] = { { 0, "Reserved"}, { AFNUM_INET, "IPv4"}, { AFNUM_INET6, "IPv6"}, @@ -49,3 +42,15 @@ struct tok af_values[] = { { AFNUM_VPLS, "VPLS"}, { 0, NULL}, }; + +const struct tok bsd_af_values[] = { + { BSD_AFNUM_INET, "IPv4" }, + { BSD_AFNUM_NS, "NS" }, + { BSD_AFNUM_ISO, "ISO" }, + { BSD_AFNUM_APPLETALK, "Appletalk" }, + { BSD_AFNUM_IPX, "IPX" }, + { BSD_AFNUM_INET6_BSD, "IPv6" }, + { BSD_AFNUM_INET6_FREEBSD, "IPv6" }, + { BSD_AFNUM_INET6_DARWIN, "IPv6" }, + { 0, NULL} +};