1172683Smlaier/* 2172683Smlaier * Copyright (c) 1998-2006 The TCPDUMP project 3172683Smlaier * 4172683Smlaier * Redistribution and use in source and binary forms, with or without 5172683Smlaier * modification, are permitted provided that: (1) source code 6172683Smlaier * distributions retain the above copyright notice and this paragraph 7172683Smlaier * in its entirety, and (2) distributions including binary code include 8172683Smlaier * the above copyright notice and this paragraph in its entirety in 9172683Smlaier * the documentation or other materials provided with the distribution. 10172683Smlaier * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 11172683Smlaier * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 12172683Smlaier * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13172683Smlaier * FOR A PARTICULAR PURPOSE. 14172683Smlaier * 15172683Smlaier * Original code by Hannes Gredler (hannes@juniper.net) 16172683Smlaier */ 17172683Smlaier 18172683Smlaier#ifndef lint 19172683Smlaierstatic const char rcsid[] _U_ = 20190207Srpaulo "@(#) $Header: /tcpdump/master/tcpdump/af.c,v 1.3 2006-03-23 14:58:44 hannes Exp $ (LBL)"; 21172683Smlaier#endif 22172683Smlaier 23172683Smlaier#ifdef HAVE_CONFIG_H 24172683Smlaier#include "config.h" 25172683Smlaier#endif 26172683Smlaier 27172683Smlaier#include <tcpdump-stdinc.h> 28172683Smlaier#include "interface.h" 29172683Smlaier#include "af.h" 30172683Smlaier 31214478Srpauloconst struct tok af_values[] = { 32172683Smlaier { 0, "Reserved"}, 33172683Smlaier { AFNUM_INET, "IPv4"}, 34172683Smlaier { AFNUM_INET6, "IPv6"}, 35172683Smlaier { AFNUM_NSAP, "NSAP"}, 36172683Smlaier { AFNUM_HDLC, "HDLC"}, 37172683Smlaier { AFNUM_BBN1822, "BBN 1822"}, 38172683Smlaier { AFNUM_802, "802"}, 39172683Smlaier { AFNUM_E163, "E.163"}, 40172683Smlaier { AFNUM_E164, "E.164"}, 41172683Smlaier { AFNUM_F69, "F.69"}, 42172683Smlaier { AFNUM_X121, "X.121"}, 43172683Smlaier { AFNUM_IPX, "Novell IPX"}, 44172683Smlaier { AFNUM_ATALK, "Appletalk"}, 45172683Smlaier { AFNUM_DECNET, "Decnet IV"}, 46172683Smlaier { AFNUM_BANYAN, "Banyan Vines"}, 47172683Smlaier { AFNUM_E164NSAP, "E.164 with NSAP subaddress"}, 48172683Smlaier { AFNUM_L2VPN, "Layer-2 VPN"}, 49172683Smlaier { AFNUM_VPLS, "VPLS"}, 50172683Smlaier { 0, NULL}, 51172683Smlaier}; 52172683Smlaier 53214478Srpauloconst struct tok bsd_af_values[] = { 54172683Smlaier { BSD_AFNUM_INET, "IPv4" }, 55172683Smlaier { BSD_AFNUM_NS, "NS" }, 56172683Smlaier { BSD_AFNUM_ISO, "ISO" }, 57172683Smlaier { BSD_AFNUM_APPLETALK, "Appletalk" }, 58172683Smlaier { BSD_AFNUM_IPX, "IPX" }, 59172683Smlaier { BSD_AFNUM_INET6_BSD, "IPv6" }, 60172683Smlaier { BSD_AFNUM_INET6_FREEBSD, "IPv6" }, 61172683Smlaier { BSD_AFNUM_INET6_DARWIN, "IPv6" }, 62172683Smlaier { 0, NULL} 63172683Smlaier}; 64