]> The Tcpdump Group git mirrors - tcpdump/blob - gmpls.c
Move the definitions of the various GMPLS "struct tok"s out of gmpls.h
[tcpdump] / gmpls.c
1 /*
2 * Redistribution and use in source and binary forms, with or without
3 * modification, are permitted provided that: (1) source code
4 * distributions retain the above copyright notice and this paragraph
5 * in its entirety, and (2) distributions including binary code include
6 * the above copyright notice and this paragraph in its entirety in
7 * the documentation or other materials provided with the distribution.
8 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
9 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
10 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
11 * FOR A PARTICULAR PURPOSE.
12 *
13 * Original code by Hannes Gredler (hannes@juniper.net)
14 */
15
16 #ifndef lint
17 static const char rcsid[] =
18 "@(#) $Header: /tcpdump/master/tcpdump/gmpls.c,v 1.1 2003-06-09 23:28:09 guy Exp $ (LBL)";
19 #endif
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include <tcpdump-stdinc.h>
26
27 #include "interface.h"
28
29 struct tok gmpls_link_prot_values[] = {
30 { 0x01, "Extra Traffic"},
31 { 0x02, "Unprotected"},
32 { 0x04, "Shared"},
33 { 0x08, "Dedicated 1:1"},
34 { 0x10, "Dedicated 1+1"},
35 { 0x20, "Enhanced"},
36 { 0x40, "Reserved"},
37 { 0x80, "Reserved"},
38 { 0, NULL }
39 };
40
41 struct tok gmpls_switch_cap_values[] = {
42 { 1, "Packet-Switch Capable-1"},
43 { 2, "Packet-Switch Capable-2"},
44 { 3, "Packet-Switch Capable-3"},
45 { 4, "Packet-Switch Capable-4"},
46 { 51, "Layer-2 Switch Capable"},
47 { 100, "Time-Division-Multiplex"},
48 { 150, "Lambda-Switch Capable"},
49 { 200, "Fiber-Switch Capable"},
50 { 0, NULL }
51 };
52
53 struct tok gmpls_encoding_values[] = {
54 { 1, "Packet"},
55 { 2, "Ethernet V2/DIX"},
56 { 3, "ANSI/ETSI PDH"},
57 { 4, "Reserved"},
58 { 5, "SDH ITU-T G.707/SONET ANSI T1.105"},
59 { 6, "Reserved"},
60 { 7, "Digital Wrapper"},
61 { 8, "Lambda (photonic)"},
62 { 9, "Fiber"},
63 { 10, "Reserved"},
64 { 11, "FiberChannel"},
65 { 0, NULL }
66 };
67
68 struct tok gmpls_payload_values[] = {
69 { 0, "Unknown"},
70 { 1, "Reserved"},
71 { 2, "Reserved"},
72 { 3, "Reserved"},
73 { 4, "Reserved"},
74 { 5, "Asynchronous mapping of E4"},
75 { 6, "Asynchronous mapping of DS3/T3"},
76 { 7, "Asynchronous mapping of E3"},
77 { 8, "Bit synchronous mapping of E3"},
78 { 9, "Byte synchronous mapping of E3"},
79 { 10, "Asynchronous mapping of DS2/T2"},
80 { 11, "Bit synchronous mapping of DS2/T2"},
81 { 12, "Reserved"},
82 { 13, "Asynchronous mapping of E1"},
83 { 14, "Byte synchronous mapping of E1"},
84 { 15, "Byte synchronous mapping of 31 * DS0"},
85 { 16, "Asynchronous mapping of DS1/T1"},
86 { 17, "Bit synchronous mapping of DS1/T1"},
87 { 18, "Byte synchronous mapping of DS1/T1"},
88 { 19, "VC-11 in VC-12"},
89 { 20, "Reserved"},
90 { 21, "Reserved"},
91 { 22, "DS1 SF Asynchronous"},
92 { 23, "DS1 ESF Asynchronous"},
93 { 24, "DS3 M23 Asynchronous"},
94 { 25, "DS3 C-Bit Parity Asynchronous"},
95 { 26, "VT/LOVC"},
96 { 27, "STS SPE/HOVC"},
97 { 28, "POS - No Scrambling, 16 bit CRC"},
98 { 29, "POS - No Scrambling, 32 bit CRC"},
99 { 30, "POS - Scrambling, 16 bit CRC"},
100 { 31, "POS - Scrambling, 32 bit CRC"},
101 { 32, "ATM mapping"},
102 { 33, "Ethernet"},
103 { 34, "SONET/SDH"},
104 { 35, "Reserved (SONET deprecated)"},
105 { 36, "Digital Wrapper"},
106 { 37, "Lambda"},
107 { 38, "ANSI/ETSI PDH"},
108 { 39, "Reserved"},
109 { 40, "Link Access Protocol SDH (X.85 and X.86)"},
110 { 41, "FDDI"},
111 { 42, "DQDB (ETSI ETS 300 216)"},
112 { 43, "FiberChannel-3 (Services)"},
113 { 44, "HDLC"},
114 { 45, "Ethernet V2/DIX (only)"},
115 { 46, "Ethernet 802.3 (only)"},
116 { 0, NULL }
117 };