af.c revision 327234
1107120Sjulian/* 2107120Sjulian * Copyright (c) 1998-2006 The TCPDUMP project 3139823Simp * 4139823Simp * Redistribution and use in source and binary forms, with or without 5139823Simp * modification, are permitted provided that: (1) source code 6107120Sjulian * distributions retain the above copyright notice and this paragraph 7107120Sjulian * in its entirety, and (2) distributions including binary code include 8107120Sjulian * the above copyright notice and this paragraph in its entirety in 9107120Sjulian * the documentation or other materials provided with the distribution. 10107120Sjulian * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 11107120Sjulian * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 12107120Sjulian * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13107120Sjulian * FOR A PARTICULAR PURPOSE. 14107120Sjulian * 15107120Sjulian * Original code by Hannes Gredler (hannes@gredler.at) 16107120Sjulian */ 17107120Sjulian 18107120Sjulian#ifdef HAVE_CONFIG_H 19107120Sjulian#include "config.h" 20107120Sjulian#endif 21107120Sjulian 22107120Sjulian#include <netdissect-stdinc.h> 23107120Sjulian#include "netdissect.h" 24107120Sjulian#include "af.h" 25107120Sjulian 26107120Sjulianconst struct tok af_values[] = { 27107120Sjulian { 0, "Reserved"}, 28107120Sjulian { AFNUM_INET, "IPv4"}, 29107120Sjulian { AFNUM_INET6, "IPv6"}, 30121054Semax { AFNUM_NSAP, "NSAP"}, 31107120Sjulian { AFNUM_HDLC, "HDLC"}, 32107120Sjulian { AFNUM_BBN1822, "BBN 1822"}, 33107120Sjulian { AFNUM_802, "802"}, 34107120Sjulian { AFNUM_E163, "E.163"}, 35107120Sjulian { AFNUM_E164, "E.164"}, 36107120Sjulian { AFNUM_F69, "F.69"}, 37107120Sjulian { AFNUM_X121, "X.121"}, 38107120Sjulian { AFNUM_IPX, "Novell IPX"}, 39107120Sjulian { AFNUM_ATALK, "Appletalk"}, 40107120Sjulian { AFNUM_DECNET, "Decnet IV"}, 41107120Sjulian { AFNUM_BANYAN, "Banyan Vines"}, 42107120Sjulian { AFNUM_E164NSAP, "E.164 with NSAP subaddress"}, 43128688Semax { AFNUM_L2VPN, "Layer-2 VPN"}, 44128688Semax { AFNUM_VPLS, "VPLS"}, 45128688Semax { 0, NULL}, 46128688Semax}; 47128688Semax 48128688Semaxconst struct tok bsd_af_values[] = { 49128688Semax { BSD_AFNUM_INET, "IPv4" }, 50107120Sjulian { BSD_AFNUM_NS, "NS" }, 51107120Sjulian { BSD_AFNUM_ISO, "ISO" }, 52107120Sjulian { BSD_AFNUM_APPLETALK, "Appletalk" }, 53107120Sjulian { BSD_AFNUM_IPX, "IPX" }, 54107120Sjulian { BSD_AFNUM_INET6_BSD, "IPv6" }, 55107120Sjulian { BSD_AFNUM_INET6_FREEBSD, "IPv6" }, 56107120Sjulian { BSD_AFNUM_INET6_DARWIN, "IPv6" }, 57107120Sjulian { 0, NULL} 58107120Sjulian}; 59107120Sjulian