1 | #include <machine/rtems-bsd-user-space.h> |
---|
2 | |
---|
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 | #ifndef lint |
---|
19 | static const char rcsid[] _U_ = |
---|
20 | "@(#) $Header: /tcpdump/master/tcpdump/l2vpn.c,v 1.1 2004-06-15 09:42:40 hannes Exp $ (LBL)"; |
---|
21 | #endif |
---|
22 | |
---|
23 | #ifdef HAVE_CONFIG_H |
---|
24 | #include "config.h" |
---|
25 | #endif |
---|
26 | |
---|
27 | #include <tcpdump-stdinc.h> |
---|
28 | #include "interface.h" |
---|
29 | #include "l2vpn.h" |
---|
30 | |
---|
31 | /* draft-ietf-pwe3-iana-allocation-04 */ |
---|
32 | const struct tok l2vpn_encaps_values[] = { |
---|
33 | { 0x00, "Reserved"}, |
---|
34 | { 0x01, "Frame Relay"}, |
---|
35 | { 0x02, "ATM AAL5 VCC transport"}, |
---|
36 | { 0x03, "ATM transparent cell transport"}, |
---|
37 | { 0x04, "Ethernet VLAN"}, |
---|
38 | { 0x05, "Ethernet"}, |
---|
39 | { 0x06, "Cisco-HDLC"}, |
---|
40 | { 0x07, "PPP"}, |
---|
41 | { 0x08, "SONET/SDH Circuit Emulation Service over MPLS"}, |
---|
42 | { 0x09, "ATM n-to-one VCC cell transport"}, |
---|
43 | { 0x0a, "ATM n-to-one VPC cell transport"}, |
---|
44 | { 0x0b, "IP Layer2 Transport"}, |
---|
45 | { 0x0c, "ATM one-to-one VCC Cell Mode"}, |
---|
46 | { 0x0d, "ATM one-to-one VPC Cell Mode"}, |
---|
47 | { 0x0e, "ATM AAL5 PDU VCC transport"}, |
---|
48 | { 0x0f, "Frame-Relay Port mode"}, |
---|
49 | { 0x10, "SONET/SDH Circuit Emulation over Packet"}, |
---|
50 | { 0x11, "Structure-agnostic E1 over Packet"}, |
---|
51 | { 0x12, "Structure-agnostic T1 (DS1) over Packet"}, |
---|
52 | { 0x13, "Structure-agnostic E3 over Packet"}, |
---|
53 | { 0x14, "Structure-agnostic T3 (DS3) over Packet"}, |
---|
54 | { 0x15, "CESoPSN basic mode"}, |
---|
55 | { 0x16, "TDMoIP basic mode"}, |
---|
56 | { 0x17, "CESoPSN TDM with CAS"}, |
---|
57 | { 0x18, "TDMoIP TDM with CAS"}, |
---|
58 | { 0x40, "IP-interworking"}, |
---|
59 | { 0, NULL} |
---|
60 | }; |
---|