1 /* @(#) $Header: /tcpdump/master/tcpdump/gmpls.h,v 1.1 2003-06-06 23:47:53 hannes Exp $ (LBL) */
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that: (1) source code
5 * distributions retain the above copyright notice and this paragraph
6 * in its entirety, and (2) distributions including binary code include
7 * the above copyright notice and this paragraph in its entirety in
8 * the documentation or other materials provided with the distribution.
9 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
10 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
11 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
12 * FOR A PARTICULAR PURPOSE.
14 * Original code by Hannes Gredler (hannes@juniper.net)
18 static struct tok gmpls_link_prot_values
[] = {
19 { 0x01, "Extra Traffic"},
20 { 0x02, "Unprotected"},
22 { 0x08, "Dedicated 1:1"},
23 { 0x10, "Dedicated 1+1"},
30 static struct tok gmpls_switch_cap_values
[] = {
31 { 1, "Packet-Switch Capable-1"},
32 { 2, "Packet-Switch Capable-2"},
33 { 3, "Packet-Switch Capable-3"},
34 { 4, "Packet-Switch Capable-4"},
35 { 51, "Layer-2 Switch Capable"},
36 { 100, "Time-Division-Multiplex"},
37 { 150, "Lambda-Switch Capable"},
38 { 200, "Fiber-Switch Capable"},
42 static struct tok gmpls_encoding_values
[] = {
44 { 2, "Ethernet V2/DIX"},
45 { 3, "ANSI/ETSI PDH"},
47 { 5, "SDH ITU-T G.707/SONET ANSI T1.105"},
49 { 7, "Digital Wrapper"},
50 { 8, "Lambda (photonic)"},
53 { 11, "FiberChannel"},
57 static struct tok gmpls_payload_values
[] = {
63 { 5, "Asynchronous mapping of E4"},
64 { 6, "Asynchronous mapping of DS3/T3"},
65 { 7, "Asynchronous mapping of E3"},
66 { 8, "Bit synchronous mapping of E3"},
67 { 9, "Byte synchronous mapping of E3"},
68 { 10, "Asynchronous mapping of DS2/T2"},
69 { 11, "Bit synchronous mapping of DS2/T2"},
71 { 13, "Asynchronous mapping of E1"},
72 { 14, "Byte synchronous mapping of E1"},
73 { 15, "Byte synchronous mapping of 31 * DS0"},
74 { 16, "Asynchronous mapping of DS1/T1"},
75 { 17, "Bit synchronous mapping of DS1/T1"},
76 { 18, "Byte synchronous mapping of DS1/T1"},
77 { 19, "VC-11 in VC-12"},
80 { 22, "DS1 SF Asynchronous"},
81 { 23, "DS1 ESF Asynchronous"},
82 { 24, "DS3 M23 Asynchronous"},
83 { 25, "DS3 C-Bit Parity Asynchronous"},
85 { 27, "STS SPE/HOVC"},
86 { 28, "POS - No Scrambling, 16 bit CRC"},
87 { 29, "POS - No Scrambling, 32 bit CRC"},
88 { 30, "POS - Scrambling, 16 bit CRC"},
89 { 31, "POS - Scrambling, 32 bit CRC"},
93 { 35, "Reserved (SONET deprecated)"},
94 { 36, "Digital Wrapper"},
96 { 38, "ANSI/ETSI PDH"},
98 { 40, "Link Access Protocol SDH (X.85 and X.86)"},
100 { 42, "DQDB (ETSI ETS 300 216)"},
101 { 43, "FiberChannel-3 (Services)"},
103 { 45, "Ethernet V2/DIX (only)"},
104 { 46, "Ethernet 802.3 (only)"},