2 * Copyright (c) 1998-2007 The TCPDUMP project
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)
19 static const char rcsid
[] _U_
=
20 "@(#) $Header: /tcpdump/master/tcpdump/print-rsvp.c,v 1.50 2008-08-16 11:36:20 hannes Exp $";
27 #include <tcpdump-stdinc.h>
33 #include "interface.h"
35 #include "addrtoname.h"
36 #include "ethertype.h"
39 #include "signature.h"
42 * RFC 2205 common header
45 * +-------------+-------------+-------------+-------------+
46 * | Vers | Flags| Msg Type | RSVP Checksum |
47 * +-------------+-------------+-------------+-------------+
48 * | Send_TTL | (Reserved) | RSVP Length |
49 * +-------------+-------------+-------------+-------------+
53 struct rsvp_common_header
{
54 u_int8_t version_flags
;
63 * RFC2205 object header
67 * +-------------+-------------+-------------+-------------+
68 * | Length (bytes) | Class-Num | C-Type |
69 * +-------------+-------------+-------------+-------------+
71 * // (Object contents) //
73 * +-------------+-------------+-------------+-------------+
76 struct rsvp_object_header
{
82 #define RSVP_VERSION 1
83 #define RSVP_EXTRACT_VERSION(x) (((x)&0xf0)>>4)
84 #define RSVP_EXTRACT_FLAGS(x) ((x)&0x0f)
86 #define RSVP_MSGTYPE_PATH 1
87 #define RSVP_MSGTYPE_RESV 2
88 #define RSVP_MSGTYPE_PATHERR 3
89 #define RSVP_MSGTYPE_RESVERR 4
90 #define RSVP_MSGTYPE_PATHTEAR 5
91 #define RSVP_MSGTYPE_RESVTEAR 6
92 #define RSVP_MSGTYPE_RESVCONF 7
93 #define RSVP_MSGTYPE_AGGREGATE 12
94 #define RSVP_MSGTYPE_ACK 13
95 #define RSVP_MSGTYPE_HELLO_OLD 14 /* ancient Hellos */
96 #define RSVP_MSGTYPE_SREFRESH 15
97 #define RSVP_MSGTYPE_HELLO 20
99 static const struct tok rsvp_msg_type_values
[] = {
100 { RSVP_MSGTYPE_PATH
, "Path" },
101 { RSVP_MSGTYPE_RESV
, "Resv" },
102 { RSVP_MSGTYPE_PATHERR
, "PathErr" },
103 { RSVP_MSGTYPE_RESVERR
, "ResvErr" },
104 { RSVP_MSGTYPE_PATHTEAR
, "PathTear" },
105 { RSVP_MSGTYPE_RESVTEAR
, "ResvTear" },
106 { RSVP_MSGTYPE_RESVCONF
, "ResvConf" },
107 { RSVP_MSGTYPE_AGGREGATE
, "Aggregate" },
108 { RSVP_MSGTYPE_ACK
, "Acknowledgement" },
109 { RSVP_MSGTYPE_HELLO_OLD
, "Hello (Old)" },
110 { RSVP_MSGTYPE_SREFRESH
, "Refresh" },
111 { RSVP_MSGTYPE_HELLO
, "Hello" },
115 static const struct tok rsvp_header_flag_values
[] = {
116 { 0x01, "Refresh reduction capable" }, /* rfc2961 */
120 #define RSVP_OBJ_SESSION 1 /* rfc2205 */
121 #define RSVP_OBJ_RSVP_HOP 3 /* rfc2205, rfc3473 */
122 #define RSVP_OBJ_INTEGRITY 4 /* rfc2747 */
123 #define RSVP_OBJ_TIME_VALUES 5 /* rfc2205 */
124 #define RSVP_OBJ_ERROR_SPEC 6
125 #define RSVP_OBJ_SCOPE 7
126 #define RSVP_OBJ_STYLE 8 /* rfc2205 */
127 #define RSVP_OBJ_FLOWSPEC 9 /* rfc2215 */
128 #define RSVP_OBJ_FILTERSPEC 10 /* rfc2215 */
129 #define RSVP_OBJ_SENDER_TEMPLATE 11
130 #define RSVP_OBJ_SENDER_TSPEC 12 /* rfc2215 */
131 #define RSVP_OBJ_ADSPEC 13 /* rfc2215 */
132 #define RSVP_OBJ_POLICY_DATA 14
133 #define RSVP_OBJ_CONFIRM 15 /* rfc2205 */
134 #define RSVP_OBJ_LABEL 16 /* rfc3209 */
135 #define RSVP_OBJ_LABEL_REQ 19 /* rfc3209 */
136 #define RSVP_OBJ_ERO 20 /* rfc3209 */
137 #define RSVP_OBJ_RRO 21 /* rfc3209 */
138 #define RSVP_OBJ_HELLO 22 /* rfc3209 */
139 #define RSVP_OBJ_MESSAGE_ID 23 /* rfc2961 */
140 #define RSVP_OBJ_MESSAGE_ID_ACK 24 /* rfc2961 */
141 #define RSVP_OBJ_MESSAGE_ID_LIST 25 /* rfc2961 */
142 #define RSVP_OBJ_RECOVERY_LABEL 34 /* rfc3473 */
143 #define RSVP_OBJ_UPSTREAM_LABEL 35 /* rfc3473 */
144 #define RSVP_OBJ_LABEL_SET 36 /* rfc3473 */
145 #define RSVP_OBJ_PROTECTION 37 /* rfc3473 */
146 #define RSVP_OBJ_S2L 50 /* rfc4875 */
147 #define RSVP_OBJ_DETOUR 63 /* draft-ietf-mpls-rsvp-lsp-fastreroute-07 */
148 #define RSVP_OBJ_CLASSTYPE 66 /* rfc4124 */
149 #define RSVP_OBJ_CLASSTYPE_OLD 125 /* draft-ietf-tewg-diff-te-proto-07 */
150 #define RSVP_OBJ_SUGGESTED_LABEL 129 /* rfc3473 */
151 #define RSVP_OBJ_ACCEPT_LABEL_SET 130 /* rfc3473 */
152 #define RSVP_OBJ_RESTART_CAPABILITY 131 /* rfc3473 */
153 #define RSVP_OBJ_NOTIFY_REQ 195 /* rfc3473 */
154 #define RSVP_OBJ_ADMIN_STATUS 196 /* rfc3473 */
155 #define RSVP_OBJ_PROPERTIES 204 /* juniper proprietary */
156 #define RSVP_OBJ_FASTREROUTE 205 /* draft-ietf-mpls-rsvp-lsp-fastreroute-07 */
157 #define RSVP_OBJ_SESSION_ATTRIBUTE 207 /* rfc3209 */
158 #define RSVP_OBJ_GENERALIZED_UNI 229 /* OIF RSVP extensions UNI 1.0 Signaling, Rel. 2 */
159 #define RSVP_OBJ_CALL_ID 230 /* rfc3474 */
160 #define RSVP_OBJ_CALL_OPS 236 /* rfc3474 */
162 static const struct tok rsvp_obj_values
[] = {
163 { RSVP_OBJ_SESSION
, "Session" },
164 { RSVP_OBJ_RSVP_HOP
, "RSVP Hop" },
165 { RSVP_OBJ_INTEGRITY
, "Integrity" },
166 { RSVP_OBJ_TIME_VALUES
, "Time Values" },
167 { RSVP_OBJ_ERROR_SPEC
, "Error Spec" },
168 { RSVP_OBJ_SCOPE
, "Scope" },
169 { RSVP_OBJ_STYLE
, "Style" },
170 { RSVP_OBJ_FLOWSPEC
, "Flowspec" },
171 { RSVP_OBJ_FILTERSPEC
, "FilterSpec" },
172 { RSVP_OBJ_SENDER_TEMPLATE
, "Sender Template" },
173 { RSVP_OBJ_SENDER_TSPEC
, "Sender TSpec" },
174 { RSVP_OBJ_ADSPEC
, "Adspec" },
175 { RSVP_OBJ_POLICY_DATA
, "Policy Data" },
176 { RSVP_OBJ_CONFIRM
, "Confirm" },
177 { RSVP_OBJ_LABEL
, "Label" },
178 { RSVP_OBJ_LABEL_REQ
, "Label Request" },
179 { RSVP_OBJ_ERO
, "ERO" },
180 { RSVP_OBJ_RRO
, "RRO" },
181 { RSVP_OBJ_HELLO
, "Hello" },
182 { RSVP_OBJ_MESSAGE_ID
, "Message ID" },
183 { RSVP_OBJ_MESSAGE_ID_ACK
, "Message ID Ack" },
184 { RSVP_OBJ_MESSAGE_ID_LIST
, "Message ID List" },
185 { RSVP_OBJ_RECOVERY_LABEL
, "Recovery Label" },
186 { RSVP_OBJ_UPSTREAM_LABEL
, "Upstream Label" },
187 { RSVP_OBJ_LABEL_SET
, "Label Set" },
188 { RSVP_OBJ_ACCEPT_LABEL_SET
, "Acceptable Label Set" },
189 { RSVP_OBJ_DETOUR
, "Detour" },
190 { RSVP_OBJ_CLASSTYPE
, "Class Type" },
191 { RSVP_OBJ_CLASSTYPE_OLD
, "Class Type (old)" },
192 { RSVP_OBJ_SUGGESTED_LABEL
, "Suggested Label" },
193 { RSVP_OBJ_PROPERTIES
, "Properties" },
194 { RSVP_OBJ_FASTREROUTE
, "Fast Re-Route" },
195 { RSVP_OBJ_SESSION_ATTRIBUTE
, "Session Attribute" },
196 { RSVP_OBJ_GENERALIZED_UNI
, "Generalized UNI" },
197 { RSVP_OBJ_CALL_ID
, "Call-ID" },
198 { RSVP_OBJ_CALL_OPS
, "Call Capability" },
199 { RSVP_OBJ_RESTART_CAPABILITY
, "Restart Capability" },
200 { RSVP_OBJ_NOTIFY_REQ
, "Notify Request" },
201 { RSVP_OBJ_PROTECTION
, "Protection" },
202 { RSVP_OBJ_ADMIN_STATUS
, "Administrative Status" },
203 { RSVP_OBJ_S2L
, "Sub-LSP to LSP" },
207 #define RSVP_CTYPE_IPV4 1
208 #define RSVP_CTYPE_IPV6 2
209 #define RSVP_CTYPE_TUNNEL_IPV4 7
210 #define RSVP_CTYPE_TUNNEL_IPV6 8
211 #define RSVP_CTYPE_UNI_IPV4 11 /* OIF RSVP extensions UNI 1.0 Signaling Rel. 2 */
212 #define RSVP_CTYPE_1 1
213 #define RSVP_CTYPE_2 2
214 #define RSVP_CTYPE_3 3
215 #define RSVP_CTYPE_4 4
216 #define RSVP_CTYPE_12 12
217 #define RSVP_CTYPE_13 13
218 #define RSVP_CTYPE_14 14
221 * the ctypes are not globally unique so for
222 * translating it to strings we build a table based
223 * on objects offsetted by the ctype
226 static const struct tok rsvp_ctype_values
[] = {
227 { 256*RSVP_OBJ_RSVP_HOP
+RSVP_CTYPE_IPV4
, "IPv4" },
228 { 256*RSVP_OBJ_RSVP_HOP
+RSVP_CTYPE_IPV6
, "IPv6" },
229 { 256*RSVP_OBJ_RSVP_HOP
+RSVP_CTYPE_3
, "IPv4 plus opt. TLVs" },
230 { 256*RSVP_OBJ_RSVP_HOP
+RSVP_CTYPE_4
, "IPv6 plus opt. TLVs" },
231 { 256*RSVP_OBJ_NOTIFY_REQ
+RSVP_CTYPE_IPV4
, "IPv4" },
232 { 256*RSVP_OBJ_NOTIFY_REQ
+RSVP_CTYPE_IPV6
, "IPv6" },
233 { 256*RSVP_OBJ_CONFIRM
+RSVP_CTYPE_IPV4
, "IPv4" },
234 { 256*RSVP_OBJ_CONFIRM
+RSVP_CTYPE_IPV6
, "IPv6" },
235 { 256*RSVP_OBJ_TIME_VALUES
+RSVP_CTYPE_1
, "1" },
236 { 256*RSVP_OBJ_FLOWSPEC
+RSVP_CTYPE_1
, "obsolete" },
237 { 256*RSVP_OBJ_FLOWSPEC
+RSVP_CTYPE_2
, "IntServ" },
238 { 256*RSVP_OBJ_SENDER_TSPEC
+RSVP_CTYPE_2
, "IntServ" },
239 { 256*RSVP_OBJ_ADSPEC
+RSVP_CTYPE_2
, "IntServ" },
240 { 256*RSVP_OBJ_FILTERSPEC
+RSVP_CTYPE_IPV4
, "IPv4" },
241 { 256*RSVP_OBJ_FILTERSPEC
+RSVP_CTYPE_IPV6
, "IPv6" },
242 { 256*RSVP_OBJ_FILTERSPEC
+RSVP_CTYPE_3
, "IPv6 Flow-label" },
243 { 256*RSVP_OBJ_FILTERSPEC
+RSVP_CTYPE_TUNNEL_IPV4
, "Tunnel IPv4" },
244 { 256*RSVP_OBJ_FILTERSPEC
+RSVP_CTYPE_12
, "IPv4 P2MP LSP Tunnel" },
245 { 256*RSVP_OBJ_FILTERSPEC
+RSVP_CTYPE_13
, "IPv6 P2MP LSP Tunnel" },
246 { 256*RSVP_OBJ_SESSION
+RSVP_CTYPE_IPV4
, "IPv4" },
247 { 256*RSVP_OBJ_SESSION
+RSVP_CTYPE_IPV6
, "IPv6" },
248 { 256*RSVP_OBJ_SESSION
+RSVP_CTYPE_TUNNEL_IPV4
, "Tunnel IPv4" },
249 { 256*RSVP_OBJ_SESSION
+RSVP_CTYPE_UNI_IPV4
, "UNI IPv4" },
250 { 256*RSVP_OBJ_SESSION
+RSVP_CTYPE_13
, "IPv4 P2MP LSP Tunnel" },
251 { 256*RSVP_OBJ_SESSION
+RSVP_CTYPE_14
, "IPv6 P2MP LSP Tunnel" },
252 { 256*RSVP_OBJ_SENDER_TEMPLATE
+RSVP_CTYPE_IPV4
, "IPv4" },
253 { 256*RSVP_OBJ_SENDER_TEMPLATE
+RSVP_CTYPE_IPV6
, "IPv6" },
254 { 256*RSVP_OBJ_SENDER_TEMPLATE
+RSVP_CTYPE_TUNNEL_IPV4
, "Tunnel IPv4" },
255 { 256*RSVP_OBJ_SENDER_TEMPLATE
+RSVP_CTYPE_12
, "IPv4 P2MP LSP Tunnel" },
256 { 256*RSVP_OBJ_SENDER_TEMPLATE
+RSVP_CTYPE_13
, "IPv6 P2MP LSP Tunnel" },
257 { 256*RSVP_OBJ_MESSAGE_ID
+RSVP_CTYPE_1
, "1" },
258 { 256*RSVP_OBJ_MESSAGE_ID_ACK
+RSVP_CTYPE_1
, "Message id ack" },
259 { 256*RSVP_OBJ_MESSAGE_ID_ACK
+RSVP_CTYPE_2
, "Message id nack" },
260 { 256*RSVP_OBJ_MESSAGE_ID_LIST
+RSVP_CTYPE_1
, "1" },
261 { 256*RSVP_OBJ_STYLE
+RSVP_CTYPE_1
, "1" },
262 { 256*RSVP_OBJ_HELLO
+RSVP_CTYPE_1
, "Hello Request" },
263 { 256*RSVP_OBJ_HELLO
+RSVP_CTYPE_2
, "Hello Ack" },
264 { 256*RSVP_OBJ_LABEL_REQ
+RSVP_CTYPE_1
, "without label range" },
265 { 256*RSVP_OBJ_LABEL_REQ
+RSVP_CTYPE_2
, "with ATM label range" },
266 { 256*RSVP_OBJ_LABEL_REQ
+RSVP_CTYPE_3
, "with FR label range" },
267 { 256*RSVP_OBJ_LABEL_REQ
+RSVP_CTYPE_4
, "Generalized Label" },
268 { 256*RSVP_OBJ_LABEL
+RSVP_CTYPE_1
, "Label" },
269 { 256*RSVP_OBJ_LABEL
+RSVP_CTYPE_2
, "Generalized Label" },
270 { 256*RSVP_OBJ_LABEL
+RSVP_CTYPE_3
, "Waveband Switching" },
271 { 256*RSVP_OBJ_SUGGESTED_LABEL
+RSVP_CTYPE_1
, "Label" },
272 { 256*RSVP_OBJ_SUGGESTED_LABEL
+RSVP_CTYPE_2
, "Generalized Label" },
273 { 256*RSVP_OBJ_SUGGESTED_LABEL
+RSVP_CTYPE_3
, "Waveband Switching" },
274 { 256*RSVP_OBJ_UPSTREAM_LABEL
+RSVP_CTYPE_1
, "Label" },
275 { 256*RSVP_OBJ_UPSTREAM_LABEL
+RSVP_CTYPE_2
, "Generalized Label" },
276 { 256*RSVP_OBJ_UPSTREAM_LABEL
+RSVP_CTYPE_3
, "Waveband Switching" },
277 { 256*RSVP_OBJ_RECOVERY_LABEL
+RSVP_CTYPE_1
, "Label" },
278 { 256*RSVP_OBJ_RECOVERY_LABEL
+RSVP_CTYPE_2
, "Generalized Label" },
279 { 256*RSVP_OBJ_RECOVERY_LABEL
+RSVP_CTYPE_3
, "Waveband Switching" },
280 { 256*RSVP_OBJ_ERO
+RSVP_CTYPE_IPV4
, "IPv4" },
281 { 256*RSVP_OBJ_RRO
+RSVP_CTYPE_IPV4
, "IPv4" },
282 { 256*RSVP_OBJ_ERROR_SPEC
+RSVP_CTYPE_IPV4
, "IPv4" },
283 { 256*RSVP_OBJ_ERROR_SPEC
+RSVP_CTYPE_IPV6
, "IPv6" },
284 { 256*RSVP_OBJ_ERROR_SPEC
+RSVP_CTYPE_3
, "IPv4 plus opt. TLVs" },
285 { 256*RSVP_OBJ_ERROR_SPEC
+RSVP_CTYPE_4
, "IPv6 plus opt. TLVs" },
286 { 256*RSVP_OBJ_RESTART_CAPABILITY
+RSVP_CTYPE_1
, "IPv4" },
287 { 256*RSVP_OBJ_SESSION_ATTRIBUTE
+RSVP_CTYPE_TUNNEL_IPV4
, "Tunnel IPv4" },
288 { 256*RSVP_OBJ_FASTREROUTE
+RSVP_CTYPE_TUNNEL_IPV4
, "Tunnel IPv4" }, /* old style*/
289 { 256*RSVP_OBJ_FASTREROUTE
+RSVP_CTYPE_1
, "1" }, /* new style */
290 { 256*RSVP_OBJ_DETOUR
+RSVP_CTYPE_TUNNEL_IPV4
, "Tunnel IPv4" },
291 { 256*RSVP_OBJ_PROPERTIES
+RSVP_CTYPE_1
, "1" },
292 { 256*RSVP_OBJ_ADMIN_STATUS
+RSVP_CTYPE_1
, "1" },
293 { 256*RSVP_OBJ_CLASSTYPE
+RSVP_CTYPE_1
, "1" },
294 { 256*RSVP_OBJ_CLASSTYPE_OLD
+RSVP_CTYPE_1
, "1" },
295 { 256*RSVP_OBJ_LABEL_SET
+RSVP_CTYPE_1
, "1" },
296 { 256*RSVP_OBJ_GENERALIZED_UNI
+RSVP_CTYPE_1
, "1" },
297 { 256*RSVP_OBJ_S2L
+RSVP_CTYPE_IPV4
, "IPv4 sub-LSP" },
298 { 256*RSVP_OBJ_S2L
+RSVP_CTYPE_IPV6
, "IPv6 sub-LSP" },
302 struct rsvp_obj_integrity_t
{
306 u_int8_t sequence
[8];
310 static const struct tok rsvp_obj_integrity_flag_values
[] = {
311 { 0x80, "Handshake" },
315 struct rsvp_obj_frr_t
{
320 u_int8_t bandwidth
[4];
321 u_int8_t include_any
[4];
322 u_int8_t exclude_any
[4];
323 u_int8_t include_all
[4];
327 #define RSVP_OBJ_XRO_MASK_SUBOBJ(x) ((x)&0x7f)
328 #define RSVP_OBJ_XRO_MASK_LOOSE(x) ((x)&0x80)
330 #define RSVP_OBJ_XRO_RES 0
331 #define RSVP_OBJ_XRO_IPV4 1
332 #define RSVP_OBJ_XRO_IPV6 2
333 #define RSVP_OBJ_XRO_ASN 32
334 #define RSVP_OBJ_XRO_MPLS 64
336 static const struct tok rsvp_obj_xro_values
[] = {
337 { RSVP_OBJ_XRO_RES
, "Reserved" },
338 { RSVP_OBJ_XRO_IPV4
, "IPv4 prefix" },
339 { RSVP_OBJ_XRO_IPV6
, "IPv6 prefix" },
340 { RSVP_OBJ_XRO_ASN
, "Autonomous system number" },
341 { RSVP_OBJ_XRO_MPLS
, "MPLS label switched path termination" },
345 /* draft-ietf-mpls-rsvp-lsp-fastreroute-07.txt */
346 static const struct tok rsvp_obj_rro_flag_values
[] = {
347 { 0x01, "Local protection available" },
348 { 0x02, "Local protection in use" },
349 { 0x04, "Bandwidth protection" },
350 { 0x08, "Node protection" },
354 static const struct tok rsvp_resstyle_values
[] = {
355 { 17, "Wildcard Filter" },
356 { 10, "Fixed Filter" },
357 { 18, "Shared Explicit" },
361 #define RSVP_OBJ_INTSERV_GUARANTEED_SERV 2
362 #define RSVP_OBJ_INTSERV_CONTROLLED_LOAD 5
364 static const struct tok rsvp_intserv_service_type_values
[] = {
365 { 1, "Default/Global Information" },
366 { RSVP_OBJ_INTSERV_GUARANTEED_SERV
, "Guaranteed Service" },
367 { RSVP_OBJ_INTSERV_CONTROLLED_LOAD
, "Controlled Load" },
371 static const struct tok rsvp_intserv_parameter_id_values
[] = {
373 { 6, "Path b/w estimate" },
374 { 8, "Minimum path latency" },
375 { 10, "Composed MTU" },
376 { 127, "Token Bucket TSpec" },
377 { 130, "Guaranteed Service RSpec" },
378 { 133, "End-to-end composed value for C" },
379 { 134, "End-to-end composed value for D" },
380 { 135, "Since-last-reshaping point composed C" },
381 { 136, "Since-last-reshaping point composed D" },
385 static struct tok rsvp_session_attribute_flag_values
[] = {
386 { 0x01, "Local Protection" },
387 { 0x02, "Label Recording" },
388 { 0x04, "SE Style" },
389 { 0x08, "Bandwidth protection" }, /* RFC4090 */
390 { 0x10, "Node protection" }, /* RFC4090 */
394 static struct tok rsvp_obj_prop_tlv_values
[] = {
396 { 0x02, "Metric 1" },
397 { 0x04, "Metric 2" },
398 { 0x08, "CCC Status" },
399 { 0x10, "Path Type" },
403 #define RSVP_OBJ_ERROR_SPEC_CODE_ROUTING 24
404 #define RSVP_OBJ_ERROR_SPEC_CODE_NOTIFY 25
405 #define RSVP_OBJ_ERROR_SPEC_CODE_DIFFSERV_TE 28
406 #define RSVP_OBJ_ERROR_SPEC_CODE_DIFFSERV_TE_OLD 125
408 static struct tok rsvp_obj_error_code_values
[] = {
409 { RSVP_OBJ_ERROR_SPEC_CODE_ROUTING
, "Routing Problem" },
410 { RSVP_OBJ_ERROR_SPEC_CODE_NOTIFY
, "Notify Error" },
411 { RSVP_OBJ_ERROR_SPEC_CODE_DIFFSERV_TE
, "Diffserv TE Error" },
412 { RSVP_OBJ_ERROR_SPEC_CODE_DIFFSERV_TE_OLD
, "Diffserv TE Error (Old)" },
416 static struct tok rsvp_obj_error_code_routing_values
[] = {
417 { 1, "Bad EXPLICIT_ROUTE object" },
418 { 2, "Bad strict node" },
419 { 3, "Bad loose node" },
420 { 4, "Bad initial subobject" },
421 { 5, "No route available toward destination" },
422 { 6, "Unacceptable label value" },
423 { 7, "RRO indicated routing loops" },
424 { 8, "non-RSVP-capable router in the path" },
425 { 9, "MPLS label allocation failure" },
426 { 10, "Unsupported L3PID" },
430 static struct tok rsvp_obj_error_code_diffserv_te_values
[] = {
431 { 1, "Unexpected CT object" },
432 { 2, "Unsupported CT" },
433 { 3, "Invalid CT value" },
434 { 4, "CT/setup priority do not form a configured TE-Class" },
435 { 5, "CT/holding priority do not form a configured TE-Class" },
436 { 6, "CT/setup priority and CT/holding priority do not form a configured TE-Class" },
437 { 7, "Inconsistency between signaled PSC and signaled CT" },
438 { 8, "Inconsistency between signaled PHBs and signaled CT" },
442 /* rfc3473 / rfc 3471 */
443 static const struct tok rsvp_obj_admin_status_flag_values
[] = {
444 { 0x80000000, "Reflect" },
445 { 0x00000004, "Testing" },
446 { 0x00000002, "Admin-down" },
447 { 0x00000001, "Delete-in-progress" },
451 /* label set actions - rfc3471 */
452 #define LABEL_SET_INCLUSIVE_LIST 0
453 #define LABEL_SET_EXCLUSIVE_LIST 1
454 #define LABEL_SET_INCLUSIVE_RANGE 2
455 #define LABEL_SET_EXCLUSIVE_RANGE 3
457 static const struct tok rsvp_obj_label_set_action_values
[] = {
458 { LABEL_SET_INCLUSIVE_LIST
, "Inclusive list" },
459 { LABEL_SET_EXCLUSIVE_LIST
, "Exclusive list" },
460 { LABEL_SET_INCLUSIVE_RANGE
, "Inclusive range" },
461 { LABEL_SET_EXCLUSIVE_RANGE
, "Exclusive range" },
465 /* OIF RSVP extensions UNI 1.0 Signaling, release 2 */
466 #define RSVP_GEN_UNI_SUBOBJ_SOURCE_TNA_ADDRESS 1
467 #define RSVP_GEN_UNI_SUBOBJ_DESTINATION_TNA_ADDRESS 2
468 #define RSVP_GEN_UNI_SUBOBJ_DIVERSITY 3
469 #define RSVP_GEN_UNI_SUBOBJ_EGRESS_LABEL 4
470 #define RSVP_GEN_UNI_SUBOBJ_SERVICE_LEVEL 5
472 static const struct tok rsvp_obj_generalized_uni_values
[] = {
473 { RSVP_GEN_UNI_SUBOBJ_SOURCE_TNA_ADDRESS
, "Source TNA address" },
474 { RSVP_GEN_UNI_SUBOBJ_DESTINATION_TNA_ADDRESS
, "Destination TNA address" },
475 { RSVP_GEN_UNI_SUBOBJ_DIVERSITY
, "Diversity" },
476 { RSVP_GEN_UNI_SUBOBJ_EGRESS_LABEL
, "Egress label" },
477 { RSVP_GEN_UNI_SUBOBJ_SERVICE_LEVEL
, "Service level" },
481 static int rsvp_intserv_print(const u_char
*, u_short
);
484 * this is a dissector for all the intserv defined
485 * specs as defined per rfc2215
486 * it is called from various rsvp objects;
487 * returns the amount of bytes being processed
490 rsvp_intserv_print(const u_char
*tptr
, u_short obj_tlen
) {
492 int parameter_id
,parameter_length
;
500 parameter_id
= *(tptr
);
501 parameter_length
= EXTRACT_16BITS(tptr
+2)<<2; /* convert wordcount to bytecount */
503 printf("\n\t Parameter ID: %s (%u), length: %u, Flags: [0x%02x]",
504 tok2str(rsvp_intserv_parameter_id_values
,"unknown",parameter_id
),
509 if (obj_tlen
< parameter_length
+4)
511 switch(parameter_id
) { /* parameter_id */
515 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
516 * | 4 (e) | (f) | 1 (g) |
517 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
518 * | IS hop cnt (32-bit unsigned integer) |
519 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
521 if (parameter_length
== 4)
522 printf("\n\t\tIS hop count: %u", EXTRACT_32BITS(tptr
+4));
527 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
528 * | 6 (h) | (i) | 1 (j) |
529 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
530 * | Path b/w estimate (32-bit IEEE floating point number) |
531 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
533 if (parameter_length
== 4) {
534 bw
.i
= EXTRACT_32BITS(tptr
+4);
535 printf("\n\t\tPath b/w estimate: %.10g Mbps", bw
.f
/125000);
541 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
542 * | 8 (k) | (l) | 1 (m) |
543 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
544 * | Minimum path latency (32-bit integer) |
545 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
547 if (parameter_length
== 4) {
548 printf("\n\t\tMinimum path latency: ");
549 if (EXTRACT_32BITS(tptr
+4) == 0xffffffff)
550 printf("don't care");
552 printf("%u", EXTRACT_32BITS(tptr
+4));
559 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
560 * | 10 (n) | (o) | 1 (p) |
561 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
562 * | Composed MTU (32-bit unsigned integer) |
563 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
565 if (parameter_length
== 4)
566 printf("\n\t\tComposed MTU: %u bytes", EXTRACT_32BITS(tptr
+4));
570 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
571 * | 127 (e) | 0 (f) | 5 (g) |
572 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
573 * | Token Bucket Rate [r] (32-bit IEEE floating point number) |
574 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
575 * | Token Bucket Size [b] (32-bit IEEE floating point number) |
576 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
577 * | Peak Data Rate [p] (32-bit IEEE floating point number) |
578 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
579 * | Minimum Policed Unit [m] (32-bit integer) |
580 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
581 * | Maximum Packet Size [M] (32-bit integer) |
582 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
585 if (parameter_length
== 20) {
586 bw
.i
= EXTRACT_32BITS(tptr
+4);
587 printf("\n\t\tToken Bucket Rate: %.10g Mbps", bw
.f
/125000);
588 bw
.i
= EXTRACT_32BITS(tptr
+8);
589 printf("\n\t\tToken Bucket Size: %.10g bytes", bw
.f
);
590 bw
.i
= EXTRACT_32BITS(tptr
+12);
591 printf("\n\t\tPeak Data Rate: %.10g Mbps", bw
.f
/125000);
592 printf("\n\t\tMinimum Policed Unit: %u bytes", EXTRACT_32BITS(tptr
+16));
593 printf("\n\t\tMaximum Packet Size: %u bytes", EXTRACT_32BITS(tptr
+20));
599 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
600 * | 130 (h) | 0 (i) | 2 (j) |
601 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
602 * | Rate [R] (32-bit IEEE floating point number) |
603 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
604 * | Slack Term [S] (32-bit integer) |
605 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
608 if (parameter_length
== 8) {
609 bw
.i
= EXTRACT_32BITS(tptr
+4);
610 printf("\n\t\tRate: %.10g Mbps", bw
.f
/125000);
611 printf("\n\t\tSlack Term: %u", EXTRACT_32BITS(tptr
+8));
619 if (parameter_length
== 4)
620 printf("\n\t\tValue: %u", EXTRACT_32BITS(tptr
+4));
625 print_unknown_data(tptr
+4,"\n\t\t",parameter_length
);
627 return (parameter_length
+4); /* header length 4 bytes */
631 rsvp_obj_print (const u_char
*pptr
, u_int plen
, const u_char
*tptr
,
632 const char *ident
, u_int tlen
) {
634 const struct rsvp_object_header
*rsvp_obj_header
;
635 const u_char
*obj_tptr
;
637 const struct rsvp_obj_integrity_t
*rsvp_obj_integrity
;
638 const struct rsvp_obj_frr_t
*rsvp_obj_frr
;
641 u_short rsvp_obj_len
,rsvp_obj_ctype
,obj_tlen
,intserv_serv_tlen
;
642 int hexdump
,processed
,padbytes
,error_code
,error_value
,i
,sigcheck
;
649 u_int action
, subchannel
;
651 while(tlen
>=sizeof(struct rsvp_object_header
)) {
652 /* did we capture enough for fully decoding the object header ? */
653 if (!TTEST2(*tptr
, sizeof(struct rsvp_object_header
)))
656 rsvp_obj_header
= (const struct rsvp_object_header
*)tptr
;
657 rsvp_obj_len
=EXTRACT_16BITS(rsvp_obj_header
->length
);
658 rsvp_obj_ctype
=rsvp_obj_header
->ctype
;
660 if(rsvp_obj_len
% 4) {
661 printf("%sERROR: object header size %u not a multiple of 4", ident
, rsvp_obj_len
);
664 if(rsvp_obj_len
< sizeof(struct rsvp_object_header
)) {
665 printf("%sERROR: object header too short %u < %lu", ident
, rsvp_obj_len
,
666 (unsigned long)sizeof(const struct rsvp_object_header
));
670 printf("%s%s Object (%u) Flags: [%s",
672 tok2str(rsvp_obj_values
,
674 rsvp_obj_header
->class_num
),
675 rsvp_obj_header
->class_num
,
676 ((rsvp_obj_header
->class_num
)&0x80) ? "ignore" : "reject");
678 if (rsvp_obj_header
->class_num
> 128)
680 ((rsvp_obj_header
->class_num
)&0x40) ? "and forward" : "silently");
682 printf(" if unknown], Class-Type: %s (%u), length: %u",
683 tok2str(rsvp_ctype_values
,
685 ((rsvp_obj_header
->class_num
)<<8)+rsvp_obj_ctype
),
689 if(tlen
< rsvp_obj_len
) {
690 printf("%sERROR: object goes past end of objects TLV", ident
);
694 obj_tptr
=tptr
+sizeof(struct rsvp_object_header
);
695 obj_tlen
=rsvp_obj_len
-sizeof(struct rsvp_object_header
);
697 /* did we capture enough for fully decoding the object ? */
698 if (!TTEST2(*tptr
, rsvp_obj_len
))
702 switch(rsvp_obj_header
->class_num
) {
703 case RSVP_OBJ_SESSION
:
704 switch(rsvp_obj_ctype
) {
705 case RSVP_CTYPE_IPV4
:
708 printf("%s IPv4 DestAddress: %s, Protocol ID: 0x%02x",
710 ipaddr_string(obj_tptr
),
711 *(obj_tptr
+sizeof(struct in_addr
)));
712 printf("%s Flags: [0x%02x], DestPort %u",
715 EXTRACT_16BITS(obj_tptr
+6));
720 case RSVP_CTYPE_IPV6
:
723 printf("%s IPv6 DestAddress: %s, Protocol ID: 0x%02x",
725 ip6addr_string(obj_tptr
),
726 *(obj_tptr
+sizeof(struct in6_addr
)));
727 printf("%s Flags: [0x%02x], DestPort %u",
729 *(obj_tptr
+sizeof(struct in6_addr
)+1),
730 EXTRACT_16BITS(obj_tptr
+sizeof(struct in6_addr
)+2));
735 case RSVP_CTYPE_TUNNEL_IPV6
:
738 printf("%s IPv6 Tunnel EndPoint: %s, Tunnel ID: 0x%04x, Extended Tunnel ID: %s",
740 ip6addr_string(obj_tptr
),
741 EXTRACT_16BITS(obj_tptr
+18),
742 ip6addr_string(obj_tptr
+20));
747 case RSVP_CTYPE_14
: /* IPv6 p2mp LSP Tunnel */
750 printf("%s IPv6 P2MP LSP ID: 0x%08x, Tunnel ID: 0x%04x, Extended Tunnel ID: %s",
752 EXTRACT_32BITS(obj_tptr
),
753 EXTRACT_16BITS(obj_tptr
+6),
754 ip6addr_string(obj_tptr
+8));
759 case RSVP_CTYPE_13
: /* IPv4 p2mp LSP Tunnel */
762 printf("%s IPv4 P2MP LSP ID: %s, Tunnel ID: 0x%04x, Extended Tunnel ID: %s",
764 ipaddr_string(obj_tptr
),
765 EXTRACT_16BITS(obj_tptr
+6),
766 ipaddr_string(obj_tptr
+8));
770 case RSVP_CTYPE_TUNNEL_IPV4
:
771 case RSVP_CTYPE_UNI_IPV4
:
774 printf("%s IPv4 Tunnel EndPoint: %s, Tunnel ID: 0x%04x, Extended Tunnel ID: %s",
776 ipaddr_string(obj_tptr
),
777 EXTRACT_16BITS(obj_tptr
+6),
778 ipaddr_string(obj_tptr
+8));
787 case RSVP_OBJ_CONFIRM
:
788 switch(rsvp_obj_ctype
) {
789 case RSVP_CTYPE_IPV4
:
790 if (obj_tlen
< sizeof(struct in_addr
))
792 printf("%s IPv4 Receiver Address: %s",
794 ipaddr_string(obj_tptr
));
795 obj_tlen
-=sizeof(struct in_addr
);
796 obj_tptr
+=sizeof(struct in_addr
);
799 case RSVP_CTYPE_IPV6
:
800 if (obj_tlen
< sizeof(struct in6_addr
))
802 printf("%s IPv6 Receiver Address: %s",
804 ip6addr_string(obj_tptr
));
805 obj_tlen
-=sizeof(struct in6_addr
);
806 obj_tptr
+=sizeof(struct in6_addr
);
814 case RSVP_OBJ_NOTIFY_REQ
:
815 switch(rsvp_obj_ctype
) {
816 case RSVP_CTYPE_IPV4
:
817 if (obj_tlen
< sizeof(struct in_addr
))
819 printf("%s IPv4 Notify Node Address: %s",
821 ipaddr_string(obj_tptr
));
822 obj_tlen
-=sizeof(struct in_addr
);
823 obj_tptr
+=sizeof(struct in_addr
);
826 case RSVP_CTYPE_IPV6
:
827 if (obj_tlen
< sizeof(struct in6_addr
))
829 printf("%s IPv6 Notify Node Address: %s",
831 ip6addr_string(obj_tptr
));
832 obj_tlen
-=sizeof(struct in6_addr
);
833 obj_tptr
+=sizeof(struct in6_addr
);
841 case RSVP_OBJ_SUGGESTED_LABEL
: /* fall through */
842 case RSVP_OBJ_UPSTREAM_LABEL
: /* fall through */
843 case RSVP_OBJ_RECOVERY_LABEL
: /* fall through */
845 switch(rsvp_obj_ctype
) {
847 while(obj_tlen
>= 4 ) {
848 printf("%s Label: %u", ident
, EXTRACT_32BITS(obj_tptr
));
856 printf("%s Generalized Label: %u",
858 EXTRACT_32BITS(obj_tptr
));
865 printf("%s Waveband ID: %u%s Start Label: %u, Stop Label: %u",
867 EXTRACT_32BITS(obj_tptr
),
869 EXTRACT_32BITS(obj_tptr
+4),
870 EXTRACT_32BITS(obj_tptr
+8));
880 switch(rsvp_obj_ctype
) {
884 printf("%s Reservation Style: %s, Flags: [0x%02x]",
886 tok2str(rsvp_resstyle_values
,
888 EXTRACT_24BITS(obj_tptr
+1)),
898 case RSVP_OBJ_SENDER_TEMPLATE
:
899 switch(rsvp_obj_ctype
) {
900 case RSVP_CTYPE_IPV4
:
903 printf("%s Source Address: %s, Source Port: %u",
905 ipaddr_string(obj_tptr
),
906 EXTRACT_16BITS(obj_tptr
+6));
911 case RSVP_CTYPE_IPV6
:
914 printf("%s Source Address: %s, Source Port: %u",
916 ip6addr_string(obj_tptr
),
917 EXTRACT_16BITS(obj_tptr
+18));
921 case RSVP_CTYPE_13
: /* IPv6 p2mp LSP tunnel */
924 printf("%s IPv6 Tunnel Sender Address: %s, LSP ID: 0x%04x"
925 "%s Sub-Group Originator ID: %s, Sub-Group ID: 0x%04x",
927 ip6addr_string(obj_tptr
),
928 EXTRACT_16BITS(obj_tptr
+18),
930 ip6addr_string(obj_tptr
+20),
931 EXTRACT_16BITS(obj_tptr
+38));
936 case RSVP_CTYPE_TUNNEL_IPV4
:
939 printf("%s IPv4 Tunnel Sender Address: %s, LSP-ID: 0x%04x",
941 ipaddr_string(obj_tptr
),
942 EXTRACT_16BITS(obj_tptr
+6));
946 case RSVP_CTYPE_12
: /* IPv4 p2mp LSP tunnel */
949 printf("%s IPv4 Tunnel Sender Address: %s, LSP ID: 0x%04x"
950 "%s Sub-Group Originator ID: %s, Sub-Group ID: 0x%04x",
952 ipaddr_string(obj_tptr
),
953 EXTRACT_16BITS(obj_tptr
+6),
955 ipaddr_string(obj_tptr
+8),
956 EXTRACT_16BITS(obj_tptr
+12));
965 case RSVP_OBJ_LABEL_REQ
:
966 switch(rsvp_obj_ctype
) {
968 while(obj_tlen
>= 4 ) {
969 printf("%s L3 Protocol ID: %s",
971 tok2str(ethertype_values
,
972 "Unknown Protocol (0x%04x)",
973 EXTRACT_16BITS(obj_tptr
+2)));
981 printf("%s L3 Protocol ID: %s",
983 tok2str(ethertype_values
,
984 "Unknown Protocol (0x%04x)",
985 EXTRACT_16BITS(obj_tptr
+2)));
986 printf(",%s merge capability",((*(obj_tptr
+4))&0x80) ? "no" : "" );
987 printf("%s Minimum VPI/VCI: %u/%u",
989 (EXTRACT_16BITS(obj_tptr
+4))&0xfff,
990 (EXTRACT_16BITS(obj_tptr
+6))&0xfff);
991 printf("%s Maximum VPI/VCI: %u/%u",
993 (EXTRACT_16BITS(obj_tptr
+8))&0xfff,
994 (EXTRACT_16BITS(obj_tptr
+10))&0xfff);
1001 printf("%s L3 Protocol ID: %s",
1003 tok2str(ethertype_values
,
1004 "Unknown Protocol (0x%04x)",
1005 EXTRACT_16BITS(obj_tptr
+2)));
1006 printf("%s Minimum/Maximum DLCI: %u/%u, %s%s bit DLCI",
1008 (EXTRACT_32BITS(obj_tptr
+4))&0x7fffff,
1009 (EXTRACT_32BITS(obj_tptr
+8))&0x7fffff,
1010 (((EXTRACT_16BITS(obj_tptr
+4)>>7)&3) == 0 ) ? "10" : "",
1011 (((EXTRACT_16BITS(obj_tptr
+4)>>7)&3) == 2 ) ? "23" : "");
1018 printf("%s LSP Encoding Type: %s (%u)",
1020 tok2str(gmpls_encoding_values
,
1024 printf("%s Switching Type: %s (%u), Payload ID: %s (0x%04x)",
1026 tok2str(gmpls_switch_cap_values
,
1030 tok2str(gmpls_payload_values
,
1032 EXTRACT_16BITS(obj_tptr
+2)),
1033 EXTRACT_16BITS(obj_tptr
+2));
1044 switch(rsvp_obj_ctype
) {
1045 case RSVP_CTYPE_IPV4
:
1046 while(obj_tlen
>= 4 ) {
1047 printf("%s Subobject Type: %s, length %u",
1049 tok2str(rsvp_obj_xro_values
,
1051 RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr
)),
1054 if (*(obj_tptr
+1) == 0) { /* prevent infinite loops */
1055 printf("%s ERROR: zero length ERO subtype",ident
);
1059 switch(RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr
)) {
1060 case RSVP_OBJ_XRO_IPV4
:
1061 printf(", %s, %s/%u, Flags: [%s]",
1062 RSVP_OBJ_XRO_MASK_LOOSE(*obj_tptr
) ? "Loose" : "Strict",
1063 ipaddr_string(obj_tptr
+2),
1065 bittok2str(rsvp_obj_rro_flag_values
,
1067 *(obj_tptr
+7))); /* rfc3209 says that this field is rsvd. */
1069 obj_tlen
-=*(obj_tptr
+1);
1070 obj_tptr
+=*(obj_tptr
+1);
1078 case RSVP_OBJ_HELLO
:
1079 switch(rsvp_obj_ctype
) {
1084 printf("%s Source Instance: 0x%08x, Destination Instance: 0x%08x",
1086 EXTRACT_32BITS(obj_tptr
),
1087 EXTRACT_32BITS(obj_tptr
+4));
1096 case RSVP_OBJ_RESTART_CAPABILITY
:
1097 switch(rsvp_obj_ctype
) {
1101 printf("%s Restart Time: %ums, Recovery Time: %ums",
1103 EXTRACT_32BITS(obj_tptr
),
1104 EXTRACT_32BITS(obj_tptr
+4));
1113 case RSVP_OBJ_SESSION_ATTRIBUTE
:
1114 switch(rsvp_obj_ctype
) {
1115 case RSVP_CTYPE_TUNNEL_IPV4
:
1118 namelen
= *(obj_tptr
+3);
1119 if (obj_tlen
< 4+namelen
)
1121 printf("%s Session Name: ", ident
);
1122 for (i
= 0; i
< namelen
; i
++)
1123 safeputchar(*(obj_tptr
+4+i
));
1124 printf("%s Setup Priority: %u, Holding Priority: %u, Flags: [%s] (%#x)",
1128 bittok2str(rsvp_session_attribute_flag_values
,
1132 obj_tlen
-=4+*(obj_tptr
+3);
1133 obj_tptr
+=4+*(obj_tptr
+3);
1140 case RSVP_OBJ_GENERALIZED_UNI
:
1141 switch(rsvp_obj_ctype
) {
1142 int subobj_type
,af
,subobj_len
,total_subobj_len
;
1149 /* read variable length subobjects */
1150 total_subobj_len
= obj_tlen
;
1151 while(total_subobj_len
> 0) {
1152 subobj_len
= EXTRACT_16BITS(obj_tptr
);
1153 subobj_type
= (EXTRACT_16BITS(obj_tptr
+2))>>8;
1154 af
= (EXTRACT_16BITS(obj_tptr
+2))&0x00FF;
1156 printf("%s Subobject Type: %s (%u), AF: %s (%u), length: %u",
1158 tok2str(rsvp_obj_generalized_uni_values
, "Unknown", subobj_type
),
1160 tok2str(af_values
, "Unknown", af
), af
,
1163 switch(subobj_type
) {
1164 case RSVP_GEN_UNI_SUBOBJ_SOURCE_TNA_ADDRESS
:
1165 case RSVP_GEN_UNI_SUBOBJ_DESTINATION_TNA_ADDRESS
:
1171 printf("%s UNI IPv4 TNA address: %s",
1172 ident
, ipaddr_string(obj_tptr
+4));
1176 if (subobj_len
< 20)
1178 printf("%s UNI IPv6 TNA address: %s",
1179 ident
, ip6addr_string(obj_tptr
+4));
1184 /* unless we have a TLV parser lets just hexdump */
1191 case RSVP_GEN_UNI_SUBOBJ_DIVERSITY
:
1193 /* unless we have a TLV parser lets just hexdump */
1198 case RSVP_GEN_UNI_SUBOBJ_EGRESS_LABEL
:
1199 if (subobj_len
< 16) {
1203 printf("%s U-bit: %x, Label type: %u, Logical port id: %u, Label: %u",
1205 ((EXTRACT_32BITS(obj_tptr
+4))>>31),
1206 ((EXTRACT_32BITS(obj_tptr
+4))&0xFF),
1207 EXTRACT_32BITS(obj_tptr
+8),
1208 EXTRACT_32BITS(obj_tptr
+12));
1211 case RSVP_GEN_UNI_SUBOBJ_SERVICE_LEVEL
:
1212 if (subobj_len
< 8) {
1216 printf("%s Service level: %u",
1217 ident
, (EXTRACT_32BITS(obj_tptr
+4))>>24);
1224 total_subobj_len
-=subobj_len
;
1225 obj_tptr
+=subobj_len
;
1226 obj_tlen
+=subobj_len
;
1229 if (total_subobj_len
) {
1230 /* unless we have a TLV parser lets just hexdump */
1240 case RSVP_OBJ_RSVP_HOP
:
1241 switch(rsvp_obj_ctype
) {
1242 case RSVP_CTYPE_3
: /* fall through - FIXME add TLV parser */
1243 case RSVP_CTYPE_IPV4
:
1246 printf("%s Previous/Next Interface: %s, Logical Interface Handle: 0x%08x",
1248 ipaddr_string(obj_tptr
),
1249 EXTRACT_32BITS(obj_tptr
+4));
1253 hexdump
=TRUE
; /* unless we have a TLV parser lets just hexdump */
1256 case RSVP_CTYPE_4
: /* fall through - FIXME add TLV parser */
1257 case RSVP_CTYPE_IPV6
:
1260 printf("%s Previous/Next Interface: %s, Logical Interface Handle: 0x%08x",
1262 ip6addr_string(obj_tptr
),
1263 EXTRACT_32BITS(obj_tptr
+16));
1266 hexdump
=TRUE
; /* unless we have a TLV parser lets just hexdump */
1274 case RSVP_OBJ_TIME_VALUES
:
1275 switch(rsvp_obj_ctype
) {
1279 printf("%s Refresh Period: %ums",
1281 EXTRACT_32BITS(obj_tptr
));
1290 /* those three objects do share the same semantics */
1291 case RSVP_OBJ_SENDER_TSPEC
:
1292 case RSVP_OBJ_ADSPEC
:
1293 case RSVP_OBJ_FLOWSPEC
:
1294 switch(rsvp_obj_ctype
) {
1298 printf("%s Msg-Version: %u, length: %u",
1300 (*obj_tptr
& 0xf0) >> 4,
1301 EXTRACT_16BITS(obj_tptr
+2)<<2);
1302 obj_tptr
+=4; /* get to the start of the service header */
1305 while (obj_tlen
>= 4) {
1306 intserv_serv_tlen
=EXTRACT_16BITS(obj_tptr
+2)<<2;
1307 printf("%s Service Type: %s (%u), break bit %s set, Service length: %u",
1309 tok2str(rsvp_intserv_service_type_values
,"unknown",*(obj_tptr
)),
1311 (*(obj_tptr
+1)&0x80) ? "" : "not",
1314 obj_tptr
+=4; /* get to the start of the parameter list */
1317 while (intserv_serv_tlen
>=4) {
1318 processed
= rsvp_intserv_print(obj_tptr
, obj_tlen
);
1321 obj_tlen
-=processed
;
1322 intserv_serv_tlen
-=processed
;
1323 obj_tptr
+=processed
;
1332 case RSVP_OBJ_FILTERSPEC
:
1333 switch(rsvp_obj_ctype
) {
1334 case RSVP_CTYPE_IPV4
:
1337 printf("%s Source Address: %s, Source Port: %u",
1339 ipaddr_string(obj_tptr
),
1340 EXTRACT_16BITS(obj_tptr
+6));
1345 case RSVP_CTYPE_IPV6
:
1348 printf("%s Source Address: %s, Source Port: %u",
1350 ip6addr_string(obj_tptr
),
1351 EXTRACT_16BITS(obj_tptr
+18));
1358 printf("%s Source Address: %s, Flow Label: %u",
1360 ip6addr_string(obj_tptr
),
1361 EXTRACT_24BITS(obj_tptr
+17));
1365 case RSVP_CTYPE_TUNNEL_IPV6
:
1368 printf("%s Source Address: %s, LSP-ID: 0x%04x",
1370 ipaddr_string(obj_tptr
),
1371 EXTRACT_16BITS(obj_tptr
+18));
1375 case RSVP_CTYPE_13
: /* IPv6 p2mp LSP tunnel */
1378 printf("%s IPv6 Tunnel Sender Address: %s, LSP ID: 0x%04x"
1379 "%s Sub-Group Originator ID: %s, Sub-Group ID: 0x%04x",
1381 ip6addr_string(obj_tptr
),
1382 EXTRACT_16BITS(obj_tptr
+18),
1384 ip6addr_string(obj_tptr
+20),
1385 EXTRACT_16BITS(obj_tptr
+38));
1390 case RSVP_CTYPE_TUNNEL_IPV4
:
1393 printf("%s Source Address: %s, LSP-ID: 0x%04x",
1395 ipaddr_string(obj_tptr
),
1396 EXTRACT_16BITS(obj_tptr
+6));
1400 case RSVP_CTYPE_12
: /* IPv4 p2mp LSP tunnel */
1403 printf("%s IPv4 Tunnel Sender Address: %s, LSP ID: 0x%04x"
1404 "%s Sub-Group Originator ID: %s, Sub-Group ID: 0x%04x",
1406 ipaddr_string(obj_tptr
),
1407 EXTRACT_16BITS(obj_tptr
+6),
1409 ipaddr_string(obj_tptr
+8),
1410 EXTRACT_16BITS(obj_tptr
+12));
1419 case RSVP_OBJ_FASTREROUTE
:
1420 /* the differences between c-type 1 and 7 are minor */
1421 obj_ptr
.rsvp_obj_frr
= (const struct rsvp_obj_frr_t
*)obj_tptr
;
1422 bw
.i
= EXTRACT_32BITS(obj_ptr
.rsvp_obj_frr
->bandwidth
);
1424 switch(rsvp_obj_ctype
) {
1425 case RSVP_CTYPE_1
: /* new style */
1426 if (obj_tlen
< sizeof(struct rsvp_obj_frr_t
))
1428 printf("%s Setup Priority: %u, Holding Priority: %u, Hop-limit: %u, Bandwidth: %.10g Mbps",
1430 (int)obj_ptr
.rsvp_obj_frr
->setup_prio
,
1431 (int)obj_ptr
.rsvp_obj_frr
->hold_prio
,
1432 (int)obj_ptr
.rsvp_obj_frr
->hop_limit
,
1434 printf("%s Include-any: 0x%08x, Exclude-any: 0x%08x, Include-all: 0x%08x",
1436 EXTRACT_32BITS(obj_ptr
.rsvp_obj_frr
->include_any
),
1437 EXTRACT_32BITS(obj_ptr
.rsvp_obj_frr
->exclude_any
),
1438 EXTRACT_32BITS(obj_ptr
.rsvp_obj_frr
->include_all
));
1439 obj_tlen
-=sizeof(struct rsvp_obj_frr_t
);
1440 obj_tptr
+=sizeof(struct rsvp_obj_frr_t
);
1443 case RSVP_CTYPE_TUNNEL_IPV4
: /* old style */
1446 printf("%s Setup Priority: %u, Holding Priority: %u, Hop-limit: %u, Bandwidth: %.10g Mbps",
1448 (int)obj_ptr
.rsvp_obj_frr
->setup_prio
,
1449 (int)obj_ptr
.rsvp_obj_frr
->hold_prio
,
1450 (int)obj_ptr
.rsvp_obj_frr
->hop_limit
,
1452 printf("%s Include Colors: 0x%08x, Exclude Colors: 0x%08x",
1454 EXTRACT_32BITS(obj_ptr
.rsvp_obj_frr
->include_any
),
1455 EXTRACT_32BITS(obj_ptr
.rsvp_obj_frr
->exclude_any
));
1465 case RSVP_OBJ_DETOUR
:
1466 switch(rsvp_obj_ctype
) {
1467 case RSVP_CTYPE_TUNNEL_IPV4
:
1468 while(obj_tlen
>= 8) {
1469 printf("%s PLR-ID: %s, Avoid-Node-ID: %s",
1471 ipaddr_string(obj_tptr
),
1472 ipaddr_string(obj_tptr
+4));
1482 case RSVP_OBJ_CLASSTYPE
:
1483 case RSVP_OBJ_CLASSTYPE_OLD
: /* fall through */
1484 switch(rsvp_obj_ctype
) {
1488 EXTRACT_32BITS(obj_tptr
)&0x7);
1497 case RSVP_OBJ_ERROR_SPEC
:
1498 switch(rsvp_obj_ctype
) {
1499 case RSVP_CTYPE_3
: /* fall through - FIXME add TLV parser */
1500 case RSVP_CTYPE_IPV4
:
1503 error_code
=*(obj_tptr
+5);
1504 error_value
=EXTRACT_16BITS(obj_tptr
+6);
1505 printf("%s Error Node Address: %s, Flags: [0x%02x]%s Error Code: %s (%u)",
1507 ipaddr_string(obj_tptr
),
1510 tok2str(rsvp_obj_error_code_values
,"unknown",error_code
),
1512 switch (error_code
) {
1513 case RSVP_OBJ_ERROR_SPEC_CODE_ROUTING
:
1514 printf(", Error Value: %s (%u)",
1515 tok2str(rsvp_obj_error_code_routing_values
,"unknown",error_value
),
1518 case RSVP_OBJ_ERROR_SPEC_CODE_DIFFSERV_TE
: /* fall through */
1519 case RSVP_OBJ_ERROR_SPEC_CODE_DIFFSERV_TE_OLD
:
1520 printf(", Error Value: %s (%u)",
1521 tok2str(rsvp_obj_error_code_diffserv_te_values
,"unknown",error_value
),
1525 printf(", Unknown Error Value (%u)", error_value
);
1532 case RSVP_CTYPE_4
: /* fall through - FIXME add TLV parser */
1533 case RSVP_CTYPE_IPV6
:
1536 error_code
=*(obj_tptr
+17);
1537 error_value
=EXTRACT_16BITS(obj_tptr
+18);
1538 printf("%s Error Node Address: %s, Flags: [0x%02x]%s Error Code: %s (%u)",
1540 ip6addr_string(obj_tptr
),
1543 tok2str(rsvp_obj_error_code_values
,"unknown",error_code
),
1546 switch (error_code
) {
1547 case RSVP_OBJ_ERROR_SPEC_CODE_ROUTING
:
1548 printf(", Error Value: %s (%u)",
1549 tok2str(rsvp_obj_error_code_routing_values
,"unknown",error_value
),
1564 case RSVP_OBJ_PROPERTIES
:
1565 switch(rsvp_obj_ctype
) {
1569 padbytes
= EXTRACT_16BITS(obj_tptr
+2);
1570 printf("%s TLV count: %u, padding bytes: %u",
1572 EXTRACT_16BITS(obj_tptr
),
1576 /* loop through as long there is anything longer than the TLV header (2) */
1577 while(obj_tlen
>= 2 + padbytes
) {
1578 printf("%s %s TLV (0x%02x), length: %u", /* length includes header */
1580 tok2str(rsvp_obj_prop_tlv_values
,"unknown",*obj_tptr
),
1583 if (obj_tlen
< *(obj_tptr
+1))
1585 if (*(obj_tptr
+1) < 2)
1587 print_unknown_data(obj_tptr
+2,"\n\t\t",*(obj_tptr
+1)-2);
1588 obj_tlen
-=*(obj_tptr
+1);
1589 obj_tptr
+=*(obj_tptr
+1);
1597 case RSVP_OBJ_MESSAGE_ID
: /* fall through */
1598 case RSVP_OBJ_MESSAGE_ID_ACK
: /* fall through */
1599 case RSVP_OBJ_MESSAGE_ID_LIST
:
1600 switch(rsvp_obj_ctype
) {
1605 printf("%s Flags [0x%02x], epoch: %u",
1608 EXTRACT_24BITS(obj_tptr
+1));
1611 /* loop through as long there are no messages left */
1612 while(obj_tlen
>= 4) {
1613 printf("%s Message-ID 0x%08x (%u)",
1615 EXTRACT_32BITS(obj_tptr
),
1616 EXTRACT_32BITS(obj_tptr
));
1626 case RSVP_OBJ_INTEGRITY
:
1627 switch(rsvp_obj_ctype
) {
1629 if (obj_tlen
< sizeof(struct rsvp_obj_integrity_t
))
1631 obj_ptr
.rsvp_obj_integrity
= (const struct rsvp_obj_integrity_t
*)obj_tptr
;
1632 printf("%s Key-ID 0x%04x%08x, Sequence 0x%08x%08x, Flags [%s]",
1634 EXTRACT_16BITS(obj_ptr
.rsvp_obj_integrity
->key_id
),
1635 EXTRACT_32BITS(obj_ptr
.rsvp_obj_integrity
->key_id
+2),
1636 EXTRACT_32BITS(obj_ptr
.rsvp_obj_integrity
->sequence
),
1637 EXTRACT_32BITS(obj_ptr
.rsvp_obj_integrity
->sequence
+4),
1638 bittok2str(rsvp_obj_integrity_flag_values
,
1640 obj_ptr
.rsvp_obj_integrity
->flags
));
1641 printf("%s MD5-sum 0x%08x%08x%08x%08x ",
1643 EXTRACT_32BITS(obj_ptr
.rsvp_obj_integrity
->digest
),
1644 EXTRACT_32BITS(obj_ptr
.rsvp_obj_integrity
->digest
+4),
1645 EXTRACT_32BITS(obj_ptr
.rsvp_obj_integrity
->digest
+8),
1646 EXTRACT_32BITS(obj_ptr
.rsvp_obj_integrity
->digest
+12));
1648 #ifdef HAVE_LIBCRYPTO
1649 sigcheck
= signature_verify(pptr
, plen
, (unsigned char *)obj_ptr
.\
1650 rsvp_obj_integrity
->digest
);
1652 sigcheck
= CANT_CHECK_SIGNATURE
;
1654 printf(" (%s)", tok2str(signature_check_values
, "Unknown", sigcheck
));
1656 obj_tlen
+=sizeof(struct rsvp_obj_integrity_t
);
1657 obj_tptr
+=sizeof(struct rsvp_obj_integrity_t
);
1664 case RSVP_OBJ_ADMIN_STATUS
:
1665 switch(rsvp_obj_ctype
) {
1669 printf("%s Flags [%s]", ident
,
1670 bittok2str(rsvp_obj_admin_status_flag_values
, "none",
1671 EXTRACT_32BITS(obj_tptr
)));
1680 case RSVP_OBJ_LABEL_SET
:
1681 switch(rsvp_obj_ctype
) {
1685 action
= (EXTRACT_16BITS(obj_tptr
)>>8);
1687 printf("%s Action: %s (%u), Label type: %u", ident
,
1688 tok2str(rsvp_obj_label_set_action_values
, "Unknown", action
),
1689 action
, ((EXTRACT_32BITS(obj_tptr
) & 0x7F)));
1692 case LABEL_SET_INCLUSIVE_RANGE
:
1693 case LABEL_SET_EXCLUSIVE_RANGE
: /* fall through */
1695 /* only a couple of subchannels are expected */
1698 printf("%s Start range: %u, End range: %u", ident
,
1699 EXTRACT_32BITS(obj_tptr
+4),
1700 EXTRACT_32BITS(obj_tptr
+8));
1709 while(obj_tlen
>= 4 ) {
1710 printf("%s Subchannel #%u: %u", ident
, subchannel
,
1711 EXTRACT_32BITS(obj_tptr
));
1724 switch (rsvp_obj_ctype
) {
1725 case RSVP_CTYPE_IPV4
:
1728 printf("%s Sub-LSP destination address: %s",
1729 ident
, ipaddr_string(obj_tptr
));
1735 case RSVP_CTYPE_IPV6
:
1738 printf("%s Sub-LSP destination address: %s",
1739 ident
, ip6addr_string(obj_tptr
));
1750 * FIXME those are the defined objects that lack a decoder
1751 * you are welcome to contribute code ;-)
1754 case RSVP_OBJ_SCOPE
:
1755 case RSVP_OBJ_POLICY_DATA
:
1756 case RSVP_OBJ_ACCEPT_LABEL_SET
:
1757 case RSVP_OBJ_PROTECTION
:
1760 print_unknown_data(obj_tptr
,"\n\t ",obj_tlen
); /* FIXME indentation */
1763 /* do we also want to see a hex dump ? */
1764 if (vflag
> 1 || hexdump
==TRUE
)
1765 print_unknown_data(tptr
+sizeof(sizeof(struct rsvp_object_header
)),"\n\t ", /* FIXME indentation */
1766 rsvp_obj_len
-sizeof(struct rsvp_object_header
));
1773 printf("\n\t\t packet exceeded snapshot");
1779 rsvp_print(register const u_char
*pptr
, register u_int len
) {
1781 struct rsvp_common_header
*rsvp_com_header
;
1782 const u_char
*tptr
,*subtptr
;
1783 u_short plen
, tlen
, subtlen
;
1787 rsvp_com_header
= (struct rsvp_common_header
*)pptr
;
1788 TCHECK(*rsvp_com_header
);
1791 * Sanity checking of the header.
1793 if (RSVP_EXTRACT_VERSION(rsvp_com_header
->version_flags
) != RSVP_VERSION
) {
1794 printf("ERROR: RSVP version %u packet not supported",
1795 RSVP_EXTRACT_VERSION(rsvp_com_header
->version_flags
));
1799 /* in non-verbose mode just lets print the basic Message Type*/
1801 printf("RSVPv%u %s Message, length: %u",
1802 RSVP_EXTRACT_VERSION(rsvp_com_header
->version_flags
),
1803 tok2str(rsvp_msg_type_values
, "unknown (%u)",rsvp_com_header
->msg_type
),
1808 /* ok they seem to want to know everything - lets fully decode it */
1810 plen
= tlen
= EXTRACT_16BITS(rsvp_com_header
->length
);
1812 printf("\n\tRSVPv%u %s Message (%u), Flags: [%s], length: %u, ttl: %u, checksum: 0x%04x",
1813 RSVP_EXTRACT_VERSION(rsvp_com_header
->version_flags
),
1814 tok2str(rsvp_msg_type_values
, "unknown, type: %u",rsvp_com_header
->msg_type
),
1815 rsvp_com_header
->msg_type
,
1816 bittok2str(rsvp_header_flag_values
,"none",RSVP_EXTRACT_FLAGS(rsvp_com_header
->version_flags
)),
1818 rsvp_com_header
->ttl
,
1819 EXTRACT_16BITS(rsvp_com_header
->checksum
));
1822 * Clear checksum prior to signature verification.
1824 rsvp_com_header
->checksum
[0] = 0;
1825 rsvp_com_header
->checksum
[1] = 0;
1827 if (tlen
< sizeof(const struct rsvp_common_header
)) {
1828 printf("ERROR: common header too short %u < %lu", tlen
,
1829 (unsigned long)sizeof(const struct rsvp_common_header
));
1833 tptr
+=sizeof(const struct rsvp_common_header
);
1834 tlen
-=sizeof(const struct rsvp_common_header
);
1836 switch(rsvp_com_header
->msg_type
) {
1838 case RSVP_MSGTYPE_AGGREGATE
:
1841 rsvp_com_header
= (struct rsvp_common_header
*)subtptr
;
1842 TCHECK(*rsvp_com_header
);
1845 * Sanity checking of the header.
1847 if (RSVP_EXTRACT_VERSION(rsvp_com_header
->version_flags
) != RSVP_VERSION
) {
1848 printf("ERROR: RSVP version %u packet not supported",
1849 RSVP_EXTRACT_VERSION(rsvp_com_header
->version_flags
));
1852 subtlen
=EXTRACT_16BITS(rsvp_com_header
->length
);
1854 printf("\n\t RSVPv%u %s Message (%u), Flags: [%s], length: %u, ttl: %u, checksum: 0x%04x",
1855 RSVP_EXTRACT_VERSION(rsvp_com_header
->version_flags
),
1856 tok2str(rsvp_msg_type_values
, "unknown, type: %u",rsvp_com_header
->msg_type
),
1857 rsvp_com_header
->msg_type
,
1858 bittok2str(rsvp_header_flag_values
,"none",RSVP_EXTRACT_FLAGS(rsvp_com_header
->version_flags
)),
1860 rsvp_com_header
->ttl
,
1861 EXTRACT_16BITS(rsvp_com_header
->checksum
));
1864 * Clear checksum prior to signature verification.
1866 rsvp_com_header
->checksum
[0] = 0;
1867 rsvp_com_header
->checksum
[1] = 0;
1869 if (subtlen
< sizeof(const struct rsvp_common_header
)) {
1870 printf("ERROR: common header too short %u < %lu", subtlen
,
1871 (unsigned long)sizeof(const struct rsvp_common_header
));
1875 if (tlen
< subtlen
) {
1876 printf("ERROR: common header too large %u > %u", subtlen
,
1881 subtptr
+=sizeof(const struct rsvp_common_header
);
1882 subtlen
-=sizeof(const struct rsvp_common_header
);
1884 if (rsvp_obj_print(pptr
, plen
, subtptr
,"\n\t ", subtlen
) == -1)
1887 tptr
+=subtlen
+sizeof(const struct rsvp_common_header
);
1888 tlen
-=subtlen
+sizeof(const struct rsvp_common_header
);
1893 case RSVP_MSGTYPE_PATH
:
1894 case RSVP_MSGTYPE_RESV
:
1895 case RSVP_MSGTYPE_PATHERR
:
1896 case RSVP_MSGTYPE_RESVERR
:
1897 case RSVP_MSGTYPE_PATHTEAR
:
1898 case RSVP_MSGTYPE_RESVTEAR
:
1899 case RSVP_MSGTYPE_RESVCONF
:
1900 case RSVP_MSGTYPE_HELLO_OLD
:
1901 case RSVP_MSGTYPE_HELLO
:
1902 case RSVP_MSGTYPE_ACK
:
1903 case RSVP_MSGTYPE_SREFRESH
:
1904 if (rsvp_obj_print(pptr
, plen
, tptr
,"\n\t ", tlen
) == -1)
1909 print_unknown_data(tptr
,"\n\t ",tlen
);
1915 printf("\n\t\t packet exceeded snapshot");