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.
15 * Original code by Hannes Gredler (hannes@juniper.net)
18 #include <sys/cdefs.h>
21 static const char rcsid
[] _U_
=
22 "@(#) Header: /tcpdump/master/tcpdump/gmpls.c,v 1.5.2.1 2005/05/19 06:44:02 guy Exp (LBL)";
24 __RCSID("$NetBSD: tcpdump2rcsid.ex,v 1.1 2001/06/25 20:09:58 itojun Exp $");
32 #include <tcpdump-stdinc.h>
34 #include "interface.h"
37 struct tok gmpls_link_prot_values
[] = {
38 { 0x01, "Extra Traffic"},
39 { 0x02, "Unprotected"},
41 { 0x08, "Dedicated 1:1"},
42 { 0x10, "Dedicated 1+1"},
50 struct tok gmpls_switch_cap_values
[] = {
51 { 1, "Packet-Switch Capable-1"},
52 { 2, "Packet-Switch Capable-2"},
53 { 3, "Packet-Switch Capable-3"},
54 { 4, "Packet-Switch Capable-4"},
55 { 51, "Layer-2 Switch Capable"},
56 { 100, "Time-Division-Multiplex"},
57 { 150, "Lambda-Switch Capable"},
58 { 200, "Fiber-Switch Capable"},
63 struct tok gmpls_encoding_values
[] = {
65 { 2, "Ethernet V2/DIX"},
66 { 3, "ANSI/ETSI PDH"},
68 { 5, "SDH ITU-T G.707/SONET ANSI T1.105"},
70 { 7, "Digital Wrapper"},
71 { 8, "Lambda (photonic)"},
74 { 11, "FiberChannel"},
79 struct tok gmpls_payload_values
[] = {
85 { 5, "Asynchronous mapping of E4"},
86 { 6, "Asynchronous mapping of DS3/T3"},
87 { 7, "Asynchronous mapping of E3"},
88 { 8, "Bit synchronous mapping of E3"},
89 { 9, "Byte synchronous mapping of E3"},
90 { 10, "Asynchronous mapping of DS2/T2"},
91 { 11, "Bit synchronous mapping of DS2/T2"},
93 { 13, "Asynchronous mapping of E1"},
94 { 14, "Byte synchronous mapping of E1"},
95 { 15, "Byte synchronous mapping of 31 * DS0"},
96 { 16, "Asynchronous mapping of DS1/T1"},
97 { 17, "Bit synchronous mapping of DS1/T1"},
98 { 18, "Byte synchronous mapping of DS1/T1"},
99 { 19, "VC-11 in VC-12"},
102 { 22, "DS1 SF Asynchronous"},
103 { 23, "DS1 ESF Asynchronous"},
104 { 24, "DS3 M23 Asynchronous"},
105 { 25, "DS3 C-Bit Parity Asynchronous"},
107 { 27, "STS SPE/HOVC"},
108 { 28, "POS - No Scrambling, 16 bit CRC"},
109 { 29, "POS - No Scrambling, 32 bit CRC"},
110 { 30, "POS - Scrambling, 16 bit CRC"},
111 { 31, "POS - Scrambling, 32 bit CRC"},
112 { 32, "ATM mapping"},
113 { 33, "Ethernet PHY"},
115 { 35, "Reserved (SONET deprecated)"},
116 { 36, "Digital Wrapper"},
118 { 38, "ANSI/ETSI PDH"},
120 { 40, "Link Access Protocol SDH (X.85 and X.86)"},
122 { 42, "DQDB (ETSI ETS 300 216)"},
123 { 43, "FiberChannel-3 (Services)"},
125 { 45, "Ethernet V2/DIX (only)"},
126 { 46, "Ethernet 802.3 (only)"},
127 /* draft-ietf-ccamp-gmpls-g709-04.txt */
129 { 48, "G.709 OTUk(v)"},
134 { 53, "IP/PPP (GFP)"},
135 { 54, "Ethernet MAC (framed GFP)"},
136 { 55, "Ethernet PHY (transparent GFP)"},
139 { 58, "Fiber Channel"},
144 * Link Type values used by LMP Service Discovery (specifically, the Client
145 * Port Service Attributes Object). See UNI 1.0 section 9.4.2 for details.
147 struct tok lmp_sd_service_config_cpsa_link_type_values
[] = {
148 { 5, "SDH ITU-T G.707"},
149 { 6, "SONET ANSI T1.105"},
154 * Signal Type values for SDH links used by LMP Service Discovery (specifically,
155 * the Client Port Service Attributes Object). See UNI 1.0 section 9.4.2 for
158 struct tok lmp_sd_service_config_cpsa_signal_type_sdh_values
[] = {
171 * Signal Type values for SONET links used by LMP Service Discovery (specifically,
172 * the Client Port Service Attributes Object). See UNI 1.0 section 9.4.2 for
175 struct tok lmp_sd_service_config_cpsa_signal_type_sonet_values
[] = {
187 #define DIFFSERV_BC_MODEL_RDM 0 /* draft-ietf-tewg-diff-te-proto-07 */
188 #define DIFFSERV_BC_MODEL_MAM 1 /* draft-ietf-tewg-diff-te-proto-07 */
189 #define DIFFSERV_BC_MODEL_EXTD_MAM 254 /* experimental */
191 struct tok diffserv_te_bc_values
[] = {
192 { DIFFSERV_BC_MODEL_RDM
, "Russian dolls"},
193 { DIFFSERV_BC_MODEL_MAM
, "Maximum allocation"},
194 { DIFFSERV_BC_MODEL_EXTD_MAM
, "Maximum allocation with E-LSP support"},