l2vpn.c revision 225736
159191Skris/* 2296465Sdelphij * Redistribution and use in source and binary forms, with or without 3296465Sdelphij * modification, are permitted provided that: (1) source code 4296465Sdelphij * distributions retain the above copyright notice and this paragraph 559191Skris * in its entirety, and (2) distributions including binary code include 659191Skris * the above copyright notice and this paragraph in its entirety in 759191Skris * the documentation or other materials provided with the distribution. 859191Skris * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 959191Skris * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 1059191Skris * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 1159191Skris * FOR A PARTICULAR PURPOSE. 1259191Skris * 1359191Skris * Original code by Hannes Gredler (hannes@juniper.net) 14296465Sdelphij */ 1559191Skris 1659191Skris#ifndef lint 1759191Skrisstatic const char rcsid[] _U_ = 1859191Skris "@(#) $Header: /tcpdump/master/tcpdump/l2vpn.c,v 1.1 2004-06-15 09:42:40 hannes Exp $ (LBL)"; 1959191Skris#endif 2059191Skris 2159191Skris#ifdef HAVE_CONFIG_H 2259191Skris#include "config.h" 2359191Skris#endif 2459191Skris 2559191Skris#include <tcpdump-stdinc.h> 2659191Skris#include "interface.h" 2759191Skris#include "l2vpn.h" 2859191Skris 2959191Skris/* draft-ietf-pwe3-iana-allocation-04 */ 3059191Skrisconst struct tok l2vpn_encaps_values[] = { 3159191Skris { 0x00, "Reserved"}, 3259191Skris { 0x01, "Frame Relay"}, 3359191Skris { 0x02, "ATM AAL5 VCC transport"}, 3459191Skris { 0x03, "ATM transparent cell transport"}, 3559191Skris { 0x04, "Ethernet VLAN"}, 3659191Skris { 0x05, "Ethernet"}, 3759191Skris { 0x06, "Cisco-HDLC"}, 3859191Skris { 0x07, "PPP"}, 3959191Skris { 0x08, "SONET/SDH Circuit Emulation Service over MPLS"}, 4059191Skris { 0x09, "ATM n-to-one VCC cell transport"}, 4159191Skris { 0x0a, "ATM n-to-one VPC cell transport"}, 4259191Skris { 0x0b, "IP Layer2 Transport"}, 4359191Skris { 0x0c, "ATM one-to-one VCC Cell Mode"}, 4459191Skris { 0x0d, "ATM one-to-one VPC Cell Mode"}, 4559191Skris { 0x0e, "ATM AAL5 PDU VCC transport"}, 4659191Skris { 0x0f, "Frame-Relay Port mode"}, 4759191Skris { 0x10, "SONET/SDH Circuit Emulation over Packet"}, 4859191Skris { 0x11, "Structure-agnostic E1 over Packet"}, 4959191Skris { 0x12, "Structure-agnostic T1 (DS1) over Packet"}, 5059191Skris { 0x13, "Structure-agnostic E3 over Packet"}, 5159191Skris { 0x14, "Structure-agnostic T3 (DS3) over Packet"}, 5259191Skris { 0x15, "CESoPSN basic mode"}, 5359191Skris { 0x16, "TDMoIP basic mode"}, 5459191Skris { 0x17, "CESoPSN TDM with CAS"}, 5559191Skris { 0x18, "TDMoIP TDM with CAS"}, 5659191Skris { 0x40, "IP-interworking"}, 5759191Skris { 0, NULL} 5859191Skris}; 5959191Skris