141c99275SPeter Avalos /* 241c99275SPeter Avalos * Copyright (c) 1998-2006 The TCPDUMP project 341c99275SPeter Avalos * 441c99275SPeter Avalos * Redistribution and use in source and binary forms, with or without 541c99275SPeter Avalos * modification, are permitted provided that: (1) source code 641c99275SPeter Avalos * distributions retain the above copyright notice and this paragraph 741c99275SPeter Avalos * in its entirety, and (2) distributions including binary code include 841c99275SPeter Avalos * the above copyright notice and this paragraph in its entirety in 941c99275SPeter Avalos * the documentation or other materials provided with the distribution. 1041c99275SPeter Avalos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 1141c99275SPeter Avalos * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 1241c99275SPeter Avalos * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 1341c99275SPeter Avalos * FOR A PARTICULAR PURPOSE. 1441c99275SPeter Avalos * 15411677aeSAaron LI * Original code by Hannes Gredler (hannes@gredler.at) 1641c99275SPeter Avalos */ 1741c99275SPeter Avalos 1841c99275SPeter Avalos #ifdef HAVE_CONFIG_H 19*ed775ee7SAntonio Huete Jimenez #include <config.h> 2041c99275SPeter Avalos #endif 2141c99275SPeter Avalos 22*ed775ee7SAntonio Huete Jimenez #include "netdissect-stdinc.h" 23411677aeSAaron LI #include "netdissect.h" 2441c99275SPeter Avalos #include "af.h" 2541c99275SPeter Avalos 2627bfbee1SPeter Avalos const struct tok af_values[] = { 2741c99275SPeter Avalos { 0, "Reserved"}, 2841c99275SPeter Avalos { AFNUM_INET, "IPv4"}, 2941c99275SPeter Avalos { AFNUM_INET6, "IPv6"}, 3041c99275SPeter Avalos { AFNUM_NSAP, "NSAP"}, 3141c99275SPeter Avalos { AFNUM_HDLC, "HDLC"}, 3241c99275SPeter Avalos { AFNUM_BBN1822, "BBN 1822"}, 3341c99275SPeter Avalos { AFNUM_802, "802"}, 3441c99275SPeter Avalos { AFNUM_E163, "E.163"}, 3541c99275SPeter Avalos { AFNUM_E164, "E.164"}, 3641c99275SPeter Avalos { AFNUM_F69, "F.69"}, 3741c99275SPeter Avalos { AFNUM_X121, "X.121"}, 3841c99275SPeter Avalos { AFNUM_IPX, "Novell IPX"}, 3941c99275SPeter Avalos { AFNUM_ATALK, "Appletalk"}, 4041c99275SPeter Avalos { AFNUM_DECNET, "Decnet IV"}, 4141c99275SPeter Avalos { AFNUM_BANYAN, "Banyan Vines"}, 4241c99275SPeter Avalos { AFNUM_E164NSAP, "E.164 with NSAP subaddress"}, 4341c99275SPeter Avalos { AFNUM_L2VPN, "Layer-2 VPN"}, 4441c99275SPeter Avalos { AFNUM_VPLS, "VPLS"}, 4541c99275SPeter Avalos { 0, NULL}, 4641c99275SPeter Avalos }; 4741c99275SPeter Avalos 4827bfbee1SPeter Avalos const struct tok bsd_af_values[] = { 4941c99275SPeter Avalos { BSD_AFNUM_INET, "IPv4" }, 5041c99275SPeter Avalos { BSD_AFNUM_NS, "NS" }, 5141c99275SPeter Avalos { BSD_AFNUM_ISO, "ISO" }, 5241c99275SPeter Avalos { BSD_AFNUM_APPLETALK, "Appletalk" }, 5341c99275SPeter Avalos { BSD_AFNUM_IPX, "IPX" }, 5441c99275SPeter Avalos { BSD_AFNUM_INET6_BSD, "IPv6" }, 5541c99275SPeter Avalos { BSD_AFNUM_INET6_FREEBSD, "IPv6" }, 5641c99275SPeter Avalos { BSD_AFNUM_INET6_DARWIN, "IPv6" }, 5741c99275SPeter Avalos { 0, NULL} 5841c99275SPeter Avalos }; 59