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