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 * 15b5bfcb5dSMax Laier * Original code by Hannes Gredler (hannes@juniper.net) 16b5bfcb5dSMax Laier */ 17b5bfcb5dSMax Laier 18b5bfcb5dSMax Laier #ifdef HAVE_CONFIG_H 19b5bfcb5dSMax Laier #include "config.h" 20b5bfcb5dSMax Laier #endif 21b5bfcb5dSMax Laier 22*3340d773SGleb Smirnoff #include <netdissect-stdinc.h> 23*3340d773SGleb Smirnoff #include "netdissect.h" 24b5bfcb5dSMax Laier #include "af.h" 25b5bfcb5dSMax Laier 2627df3f5dSRui Paulo const struct tok af_values[] = { 27b5bfcb5dSMax Laier { 0, "Reserved"}, 28b5bfcb5dSMax Laier { AFNUM_INET, "IPv4"}, 29b5bfcb5dSMax Laier { AFNUM_INET6, "IPv6"}, 30b5bfcb5dSMax Laier { AFNUM_NSAP, "NSAP"}, 31b5bfcb5dSMax Laier { AFNUM_HDLC, "HDLC"}, 32b5bfcb5dSMax Laier { AFNUM_BBN1822, "BBN 1822"}, 33b5bfcb5dSMax Laier { AFNUM_802, "802"}, 34b5bfcb5dSMax Laier { AFNUM_E163, "E.163"}, 35b5bfcb5dSMax Laier { AFNUM_E164, "E.164"}, 36b5bfcb5dSMax Laier { AFNUM_F69, "F.69"}, 37b5bfcb5dSMax Laier { AFNUM_X121, "X.121"}, 38b5bfcb5dSMax Laier { AFNUM_IPX, "Novell IPX"}, 39b5bfcb5dSMax Laier { AFNUM_ATALK, "Appletalk"}, 40b5bfcb5dSMax Laier { AFNUM_DECNET, "Decnet IV"}, 41b5bfcb5dSMax Laier { AFNUM_BANYAN, "Banyan Vines"}, 42b5bfcb5dSMax Laier { AFNUM_E164NSAP, "E.164 with NSAP subaddress"}, 43b5bfcb5dSMax Laier { AFNUM_L2VPN, "Layer-2 VPN"}, 44b5bfcb5dSMax Laier { AFNUM_VPLS, "VPLS"}, 45b5bfcb5dSMax Laier { 0, NULL}, 46b5bfcb5dSMax Laier }; 47b5bfcb5dSMax Laier 4827df3f5dSRui Paulo const struct tok bsd_af_values[] = { 49b5bfcb5dSMax Laier { BSD_AFNUM_INET, "IPv4" }, 50b5bfcb5dSMax Laier { BSD_AFNUM_NS, "NS" }, 51b5bfcb5dSMax Laier { BSD_AFNUM_ISO, "ISO" }, 52b5bfcb5dSMax Laier { BSD_AFNUM_APPLETALK, "Appletalk" }, 53b5bfcb5dSMax Laier { BSD_AFNUM_IPX, "IPX" }, 54b5bfcb5dSMax Laier { BSD_AFNUM_INET6_BSD, "IPv6" }, 55b5bfcb5dSMax Laier { BSD_AFNUM_INET6_FREEBSD, "IPv6" }, 56b5bfcb5dSMax Laier { BSD_AFNUM_INET6_DARWIN, "IPv6" }, 57b5bfcb5dSMax Laier { 0, NULL} 58b5bfcb5dSMax Laier }; 59