X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/26d58ef8a60622cbc63cc3735eb71a6f4e5ed331..1fb50928ce27360c1c987312774f686b23c69b51:/af.c?ds=sidebyside diff --git a/af.c b/af.c index 06d675fe..539ede52 100644 --- a/af.c +++ b/af.c @@ -15,20 +15,15 @@ * Original code by Hannes Gredler (hannes@juniper.net) */ -#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 - #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include -#include "interface.h" +#include +#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 +44,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} +};