]> The Tcpdump Group git mirrors - tcpdump/blob - gmpls.h
outsource gmpls related tokens to gmpls.h
[tcpdump] / gmpls.h
1 /* @(#) $Header: /tcpdump/master/tcpdump/gmpls.h,v 1.1 2003-06-06 23:47:53 hannes Exp $ (LBL) */
2 /*
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.
13 *
14 * Original code by Hannes Gredler (hannes@juniper.net)
15 */
16
17
18 static struct tok gmpls_link_prot_values[] = {
19 { 0x01, "Extra Traffic"},
20 { 0x02, "Unprotected"},
21 { 0x04, "Shared"},
22 { 0x08, "Dedicated 1:1"},
23 { 0x10, "Dedicated 1+1"},
24 { 0x20, "Enhanced"},
25 { 0x40, "Reserved"},
26 { 0x80, "Reserved"},
27 { 0, NULL }
28 };
29
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"},
39 { 0, NULL }
40 };
41
42 static struct tok gmpls_encoding_values[] = {
43 { 1, "Packet"},
44 { 2, "Ethernet V2/DIX"},
45 { 3, "ANSI/ETSI PDH"},
46 { 4, "Reserved"},
47 { 5, "SDH ITU-T G.707/SONET ANSI T1.105"},
48 { 6, "Reserved"},
49 { 7, "Digital Wrapper"},
50 { 8, "Lambda (photonic)"},
51 { 9, "Fiber"},
52 { 10, "Reserved"},
53 { 11, "FiberChannel"},
54 { 0, NULL }
55 };
56
57 static struct tok gmpls_payload_values[] = {
58 { 0, "Unknown"},
59 { 1, "Reserved"},
60 { 2, "Reserved"},
61 { 3, "Reserved"},
62 { 4, "Reserved"},
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"},
70 { 12, "Reserved"},
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"},
78 { 20, "Reserved"},
79 { 21, "Reserved"},
80 { 22, "DS1 SF Asynchronous"},
81 { 23, "DS1 ESF Asynchronous"},
82 { 24, "DS3 M23 Asynchronous"},
83 { 25, "DS3 C-Bit Parity Asynchronous"},
84 { 26, "VT/LOVC"},
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"},
90 { 32, "ATM mapping"},
91 { 33, "Ethernet"},
92 { 34, "SONET/SDH"},
93 { 35, "Reserved (SONET deprecated)"},
94 { 36, "Digital Wrapper"},
95 { 37, "Lambda"},
96 { 38, "ANSI/ETSI PDH"},
97 { 39, "Reserved"},
98 { 40, "Link Access Protocol SDH (X.85 and X.86)"},
99 { 41, "FDDI"},
100 { 42, "DQDB (ETSI ETS 300 216)"},
101 { 43, "FiberChannel-3 (Services)"},
102 { 44, "HDLC"},
103 { 45, "Ethernet V2/DIX (only)"},
104 { 46, "Ethernet 802.3 (only)"},
105 { 0, NULL }
106 };