]> The Tcpdump Group git mirrors - tcpdump/blob - print-rsvp.c
2fcb9d465a34e0f1fb5aec154ee77efe860437fc
[tcpdump] / print-rsvp.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/print-rsvp.c,v 1.3 2002-10-10 19:34:51 hannes Exp $";
19 #endif
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include <tcpdump-stdinc.h>
26
27 #include <stdio.h>
28 #include <stdlib.h>
29
30 #include "interface.h"
31 #include "extract.h"
32 #include "addrtoname.h"
33 #include "ethertype.h"
34
35 /*
36 * RFC 2205 common header
37 *
38 * 0 1 2 3
39 * +-------------+-------------+-------------+-------------+
40 * | Vers | Flags| Msg Type | RSVP Checksum |
41 * +-------------+-------------+-------------+-------------+
42 * | Send_TTL | (Reserved) | RSVP Length |
43 * +-------------+-------------+-------------+-------------+
44 *
45 */
46
47 struct rsvp_common_header {
48 u_char version_flags;
49 u_char msg_type;
50 u_char checksum[2];
51 u_char ttl;
52 u_char reserved;
53 u_char length[2];
54 };
55
56 /*
57 * RFC2205 object header
58 *
59 *
60 * 0 1 2 3
61 * +-------------+-------------+-------------+-------------+
62 * | Length (bytes) | Class-Num | C-Type |
63 * +-------------+-------------+-------------+-------------+
64 * | |
65 * // (Object contents) //
66 * | |
67 * +-------------+-------------+-------------+-------------+
68 */
69
70 struct rsvp_object_header {
71 u_char length[2];
72 u_char class_num;
73 u_char ctype;
74 };
75
76 #define RSVP_VERSION 1
77 #define RSVP_EXTRACT_VERSION(x) (((x)&0xf0)>>4)
78
79 #define RSVP_MSGTYPE_PATH 1
80 #define RSVP_MSGTYPE_RESV 2
81 #define RSVP_MSGTYPE_PATHERR 3
82 #define RSVP_MSGTYPE_RESVERR 4
83 #define RSVP_MSGTYPE_PATHTEAR 5
84 #define RSVP_MSGTYPE_RESVTEAR 6
85 #define RSVP_MSGTYPE_RESVCONF 7
86 #define RSVP_MSGTYPE_AGGREGATE 12
87 #define RSVP_MSGTYPE_ACK 13
88 #define RSVP_MSGTYPE_HELLO_OLD 14 /* ancient Hellos */
89 #define RSVP_MSGTYPE_SREFRESH 15
90 #define RSVP_MSGTYPE_HELLO 20
91
92 static const struct tok rsvp_msg_type_values[] = {
93 { RSVP_MSGTYPE_PATH, "Path" },
94 { RSVP_MSGTYPE_RESV, "Resv" },
95 { RSVP_MSGTYPE_PATHERR, "PathErr" },
96 { RSVP_MSGTYPE_RESVERR, "ResvErr" },
97 { RSVP_MSGTYPE_PATHTEAR, "PathTear" },
98 { RSVP_MSGTYPE_RESVTEAR, "ResvTear" },
99 { RSVP_MSGTYPE_RESVCONF, "ResvConf" },
100 { RSVP_MSGTYPE_AGGREGATE, "Aggregate" },
101 { RSVP_MSGTYPE_ACK, "Acknowledgement" },
102 { RSVP_MSGTYPE_HELLO_OLD, "Hello (Old)" },
103 { RSVP_MSGTYPE_SREFRESH, "Refresh" },
104 { RSVP_MSGTYPE_HELLO, "Hello" },
105 { 0, NULL}
106 };
107
108 #define RSVP_OBJ_SESSION 1
109 #define RSVP_OBJ_RSVP_HOP 3
110 #define RSVP_OBJ_INTEGRITY 4
111 #define RSVP_OBJ_TIME_VALUES 5
112 #define RSVP_OBJ_ERROR_SPEC 6
113 #define RSVP_OBJ_SCOPE 7
114 #define RSVP_OBJ_STYLE 8
115 #define RSVP_OBJ_FLOWSPEC 9
116 #define RSVP_OBJ_FILTERSPEC 10
117 #define RSVP_OBJ_SENDER_TEMPLATE 11
118 #define RSVP_OBJ_SENDER_TSPEC 12
119 #define RSVP_OBJ_ADSPEC 13
120 #define RSVP_OBJ_POLICY_DATA 14
121 #define RSVP_OBJ_CONFIRM 15
122 #define RSVP_OBJ_LABEL 16
123 #define RSVP_OBJ_LABEL_REQ 19
124 #define RSVP_OBJ_ERO 20
125 #define RSVP_OBJ_RRO 21
126 #define RSVP_OBJ_HELLO 22
127 #define RSVP_OBJ_MESSAGE_ID 23
128 #define RSVP_OBJ_MESSAGE_ID_ACK 24
129 #define RSVP_OBJ_MESSAGE_ID_LIST 25
130 #define RSVP_OBJ_RECOVERY_LABEL 34
131 #define RSVP_OBJ_UPSTREAM_LABEL 35
132 #define RSVP_OBJ_DETOUR 63
133 #define RSVP_OBJ_SUGGESTED_LABEL 129
134 #define RSVP_OBJ_PROPERTIES 204
135 #define RSVP_OBJ_FASTREROUTE 205
136 #define RSVP_OBJ_SESSION_ATTTRIBUTE 207
137 #define RSVP_OBJ_RESTART_CAPABILITY 131 /* draft-pan-rsvp-te-restart */
138
139 static const struct tok rsvp_obj_values[] = {
140 { RSVP_OBJ_SESSION, "Session" },
141 { RSVP_OBJ_RSVP_HOP, "RSVP Hop" },
142 { RSVP_OBJ_INTEGRITY, "Integrity" },
143 { RSVP_OBJ_TIME_VALUES, "Time Values" },
144 { RSVP_OBJ_ERROR_SPEC, "Error Spec" },
145 { RSVP_OBJ_SCOPE, "Scope" },
146 { RSVP_OBJ_STYLE, "Style" },
147 { RSVP_OBJ_FLOWSPEC, "Flowspec" },
148 { RSVP_OBJ_FILTERSPEC, "FilterSpec" },
149 { RSVP_OBJ_SENDER_TEMPLATE, "Sender Template" },
150 { RSVP_OBJ_SENDER_TSPEC, "Sender TSpec" },
151 { RSVP_OBJ_ADSPEC, "Adspec" },
152 { RSVP_OBJ_POLICY_DATA, "Policy Data" },
153 { RSVP_OBJ_CONFIRM, "Confirm" },
154 { RSVP_OBJ_LABEL, "Label" },
155 { RSVP_OBJ_LABEL_REQ, "Label Request" },
156 { RSVP_OBJ_ERO, "ERO" },
157 { RSVP_OBJ_RRO, "RRO" },
158 { RSVP_OBJ_HELLO, "Hello" },
159 { RSVP_OBJ_MESSAGE_ID, "Message ID" },
160 { RSVP_OBJ_MESSAGE_ID_ACK, "Message ID Ack" },
161 { RSVP_OBJ_MESSAGE_ID_LIST, "Message ID List" },
162 { RSVP_OBJ_RECOVERY_LABEL, "Recovery Label" },
163 { RSVP_OBJ_UPSTREAM_LABEL, "Upstream Label" },
164 { RSVP_OBJ_DETOUR, "Detour" },
165 { RSVP_OBJ_SUGGESTED_LABEL, "Suggested Label" },
166 { RSVP_OBJ_PROPERTIES, "Properties" },
167 { RSVP_OBJ_FASTREROUTE, "Fast Re-Route" },
168 { RSVP_OBJ_SESSION_ATTTRIBUTE, "Session Attribute" },
169 { RSVP_OBJ_RESTART_CAPABILITY, "Restart Capability" },
170 { 0, NULL}
171 };
172
173 #define RSVP_CTYPE_IPV4 1
174 #define RSVP_CTYPE_IPV6 2
175 #define RSVP_CTYPE_TUNNEL_IPV4 7
176 #define RSVP_CTYPE_TUNNEL_IPV6 8
177 #define RSVP_CTYPE_1 1
178 #define RSVP_CTYPE_2 2
179 #define RSVP_CTYPE_3 3
180
181 /*
182 * the ctypes are not globally unique so for
183 * translating it to strings we build a table based
184 * on objects offsetted by the ctype
185 */
186
187 static const struct tok rsvp_ctype_values[] = {
188 { 256*RSVP_OBJ_SESSION+RSVP_CTYPE_IPV4, "IPv4" },
189 { 256*RSVP_OBJ_SESSION+RSVP_CTYPE_IPV6, "IPv6" },
190 { 256*RSVP_OBJ_SESSION+RSVP_CTYPE_TUNNEL_IPV4, "Tunnel IPv4" },
191 { 256*RSVP_OBJ_SENDER_TEMPLATE+RSVP_CTYPE_TUNNEL_IPV4, "Tunnel IPv4" },
192 { 256*RSVP_OBJ_STYLE+RSVP_CTYPE_1, "1" },
193 { 256*RSVP_OBJ_HELLO+RSVP_CTYPE_1, "Hello Request" },
194 { 256*RSVP_OBJ_HELLO+RSVP_CTYPE_2, "Hello Ack" },
195 { 256*RSVP_OBJ_LABEL_REQ+RSVP_CTYPE_1, "without label range" },
196 { 256*RSVP_OBJ_LABEL_REQ+RSVP_CTYPE_2, "with ATM label range" },
197 { 256*RSVP_OBJ_LABEL_REQ+RSVP_CTYPE_3, "with FR label range" },
198 { 256*RSVP_OBJ_LABEL+RSVP_CTYPE_1, "1" },
199 { 256*RSVP_OBJ_ERO+RSVP_CTYPE_IPV4, "IPv4" },
200 { 256*RSVP_OBJ_RRO+RSVP_CTYPE_IPV4, "IPv4" },
201 { 256*RSVP_OBJ_RESTART_CAPABILITY+RSVP_CTYPE_1, "IPv4" },
202 { 0, NULL}
203 };
204
205 #define RSVP_OBJ_XRO_MASK_SUBOBJ(x) ((x)&0x7f)
206 #define RSVP_OBJ_XRO_MASK_LOOSE(x) ((x)&0x80)
207
208 #define RSVP_OBJ_XRO_RES 0
209 #define RSVP_OBJ_XRO_IPV4 1
210 #define RSVP_OBJ_XRO_IPV6 2
211 #define RSVP_OBJ_XRO_ASN 32
212 #define RSVP_OBJ_XRO_MPLS 64
213
214 static const struct tok rsvp_obj_xro_values[] = {
215 { RSVP_OBJ_XRO_RES, "Reserved" },
216 { RSVP_OBJ_XRO_IPV4, "IPv4 prefix" },
217 { RSVP_OBJ_XRO_IPV6, "IPv6 prefix" },
218 { RSVP_OBJ_XRO_ASN, "Autonomous system number" },
219 { RSVP_OBJ_XRO_MPLS, "MPLS label switched path termination" },
220 { 0, NULL}
221 };
222
223 static const struct tok rsvp_resstyle_values[] = {
224 { 17, "Wildcard Filter" },
225 { 10, "Fixed Filter" },
226 { 18, "Shared Explicit" },
227 { 0, NULL}
228 };
229
230 #define FALSE 0
231 #define TRUE 1
232
233 void
234 rsvp_print(register const u_char *pptr, register u_int len) {
235
236 const struct rsvp_common_header *rsvp_com_header;
237 const struct rsvp_object_header *rsvp_obj_header;
238 const u_char *tptr,*obj_tptr;
239 u_short tlen,rsvp_obj_len,rsvp_obj_ctype,obj_tlen;
240 int hexdump;
241
242 tptr=pptr;
243 rsvp_com_header = (const struct rsvp_common_header *)pptr;
244 TCHECK(*rsvp_com_header);
245
246 /*
247 * Sanity checking of the header.
248 */
249 if (RSVP_EXTRACT_VERSION(rsvp_com_header->version_flags) != RSVP_VERSION) {
250 printf("RSVP version %u packet not supported",
251 RSVP_EXTRACT_VERSION(rsvp_com_header->version_flags));
252 return;
253 }
254
255 /* in non-verbose mode just lets print the basic Message Type*/
256 if (vflag < 1) {
257 printf("RSVP %s Message, length: %u",
258 tok2str(rsvp_msg_type_values, "unknown (%u)",rsvp_com_header->msg_type),
259 len);
260 return;
261 }
262
263 /* ok they seem to want to know everything - lets fully decode it */
264
265 printf("RSVP, length: %u",len);
266
267 tlen=EXTRACT_16BITS(rsvp_com_header->length);
268
269 printf("\n\tv: %u, msg-type: %s, length: %u, ttl: %u, checksum: 0x%04x",
270 RSVP_EXTRACT_VERSION(rsvp_com_header->version_flags),
271 tok2str(rsvp_msg_type_values, "unknown, type: %u",rsvp_com_header->msg_type),
272 tlen,
273 rsvp_com_header->ttl,
274 EXTRACT_16BITS(rsvp_com_header->checksum));
275
276 tptr+=sizeof(const struct rsvp_common_header);
277 tlen-=sizeof(const struct rsvp_common_header);
278
279 while(tlen>0) {
280 /* did we capture enough for fully decoding the object header ? */
281 if (!TTEST2(*tptr, sizeof(struct rsvp_object_header)))
282 goto trunc;
283
284 rsvp_obj_header = (const struct rsvp_object_header *)tptr;
285 rsvp_obj_len=EXTRACT_16BITS(rsvp_obj_header->length);
286 rsvp_obj_ctype=rsvp_obj_header->ctype;
287
288 if(rsvp_obj_len % 4 || rsvp_obj_len < 4)
289 return;
290
291 printf("\n\t %s Object (%u) flags: [%s",
292 tok2str(rsvp_obj_values,
293 "Unknown",
294 rsvp_obj_header->class_num),
295 rsvp_obj_header->class_num,
296 ((rsvp_obj_header->class_num)&0x80) ? "ignore" : "reject");
297
298 if (rsvp_obj_header->class_num > 128)
299 printf(" %s",
300 ((rsvp_obj_header->class_num)&0x40) ? "and forward" : "silently");
301
302 printf(" if unknown], Class-Type: %s (%u), length: %u",
303 tok2str(rsvp_ctype_values,
304 "Unknown",
305 ((rsvp_obj_header->class_num)<<8)+rsvp_obj_ctype),
306 rsvp_obj_ctype,
307 rsvp_obj_len);
308
309 obj_tptr=tptr+sizeof(struct rsvp_object_header);
310 obj_tlen=rsvp_obj_len-sizeof(struct rsvp_object_header);
311
312 /* did we capture enough for fully decoding the object ? */
313 if (!TTEST2(*tptr, rsvp_obj_len))
314 goto trunc;
315 hexdump=FALSE;
316
317 switch(rsvp_obj_header->class_num) {
318 case RSVP_OBJ_SESSION:
319 switch(rsvp_obj_ctype) {
320 case RSVP_CTYPE_IPV4:
321 printf("\n\t IPv4 DestAddress: %s, Protocol ID: 0x%02x",
322 ipaddr_string(obj_tptr),
323 *(obj_tptr+4));
324 printf("\n\t Flags: 0x%02x, DestPort %u",
325 *(obj_tptr+5),
326 EXTRACT_16BITS(obj_tptr+6));
327 obj_tlen-=8;
328 obj_tptr+=8;
329 break;
330 #ifdef INET6
331 case RSVP_CTYPE_IPV6:
332 printf("\n\t IPv6 DestAddress: %s, Protocol ID: 0x%02x",
333 ip6addr_string(obj_tptr),
334 *(obj_tptr+16));
335 printf("\n\t Flags: 0x%02x, DestPort %u",
336 *(obj_tptr+17),
337 EXTRACT_16BITS(obj_tptr+18));
338 obj_tlen-=20;
339 obj_tptr+=20;
340 break;
341 case RSVP_CTYPE_TUNNEL_IPV6:
342 printf("\n\t IPv6 Tunnel EndPoint: %s, Tunnel ID: 0x%04x, Extended Tunnel ID: %s",
343 ip6addr_string(obj_tptr),
344 EXTRACT_16BITS(obj_tptr+18),
345 ip6addr_string(obj_tptr+20));
346 obj_tlen-=36;
347 obj_tptr+=36;
348 break;
349 #endif
350 case RSVP_CTYPE_TUNNEL_IPV4:
351 printf("\n\t IPv4 Tunnel EndPoint: %s, Tunnel ID: 0x%04x, Extended Tunnel ID: %s",
352 ipaddr_string(obj_tptr),
353 EXTRACT_16BITS(obj_tptr+6),
354 ipaddr_string(obj_tptr+8));
355 obj_tlen-=12;
356 obj_tptr+=12;
357 break;
358 default:
359 hexdump=TRUE;
360 }
361 break;
362 case RSVP_OBJ_LABEL:
363 switch(rsvp_obj_ctype) {
364 case RSVP_CTYPE_1:
365 while(obj_tlen >= 4 ) {
366 printf("\n\t Label: %u", EXTRACT_32BITS(obj_tptr));
367 obj_tlen-=4;
368 obj_tptr+=4;
369 }
370 break;
371 default:
372 hexdump=TRUE;
373 }
374 break;
375 case RSVP_OBJ_STYLE:
376 switch(rsvp_obj_ctype) {
377 case RSVP_CTYPE_1:
378 printf("\n\t Reservation Style: %s, Flags: 0x%02x",
379 tok2str(rsvp_resstyle_values,
380 "Unknown",
381 EXTRACT_24BITS(obj_tptr+1)),
382 *(obj_tptr));
383 obj_tlen-=4;
384 obj_tptr+=4;
385 break;
386 default:
387 hexdump=TRUE;
388 }
389 break;
390 case RSVP_OBJ_SENDER_TEMPLATE:
391 switch(rsvp_obj_ctype) {
392 case RSVP_CTYPE_TUNNEL_IPV4:
393 printf("\n\t IPv4 Tunnel Sender Address: %s, LSP-ID: 0x%04x",
394 ipaddr_string(obj_tptr),
395 EXTRACT_16BITS(obj_tptr+6));
396 obj_tlen-=8;
397 obj_tptr+=8;
398 break;
399 default:
400 hexdump=TRUE;
401 }
402 break;
403 case RSVP_OBJ_LABEL_REQ:
404 switch(rsvp_obj_ctype) {
405 case RSVP_CTYPE_1:
406 while(obj_tlen >= 4 ) {
407 printf("\n\t L3 Protocol ID: %s",
408 tok2str(ethertype_values,
409 "Unknown Protocol 0x%04x",
410 EXTRACT_16BITS(obj_tptr+2)));
411 obj_tlen-=4;
412 obj_tptr+=4;
413 }
414 break;
415 case RSVP_CTYPE_2:
416 printf("\n\t L3 Protocol ID: %s",
417 tok2str(ethertype_values,
418 "Unknown Protocol 0x%04x",
419 EXTRACT_16BITS(obj_tptr+2)));
420 printf(",%s merge capability",((*(obj_tptr+4))&0x80) ? "no" : "" );
421 printf("\n\t Minimum VPI/VCI %u/%u",
422 (EXTRACT_16BITS(obj_tptr+4))&0xfff,
423 (EXTRACT_16BITS(obj_tptr+6))&0xfff);
424 printf("\n\t Maximum VPI/VCI %u/%u",
425 (EXTRACT_16BITS(obj_tptr+8))&0xfff,
426 (EXTRACT_16BITS(obj_tptr+10))&0xfff);
427 obj_tlen-=12;
428 obj_tptr+=12;
429 break;
430 case RSVP_CTYPE_3:
431 printf("\n\t L3 Protocol ID: %s",
432 tok2str(ethertype_values,
433 "Unknown Protocol 0x%04x",
434 EXTRACT_16BITS(obj_tptr+2)));
435 printf("\n\t Minimum/Maximum DLCI %u/%u, %s%s bit DLCI",
436 (EXTRACT_32BITS(obj_tptr+4))&0x7fffff,
437 (EXTRACT_32BITS(obj_tptr+8))&0x7fffff,
438 (((EXTRACT_16BITS(obj_tptr+4)>>7)&3) == 0 ) ? "10" : "",
439 (((EXTRACT_16BITS(obj_tptr+4)>>7)&3) == 2 ) ? "23" : "");
440 obj_tlen-=12;
441 obj_tptr+=12;
442 break;
443 default:
444 hexdump=TRUE;
445 }
446 break;
447 case RSVP_OBJ_RRO:
448 case RSVP_OBJ_ERO:
449 switch(rsvp_obj_ctype) {
450 case RSVP_CTYPE_IPV4:
451 while(obj_tlen >= 4 ) {
452 printf("\n\t Subobject Type: %s",
453 tok2str(rsvp_obj_xro_values,
454 "Unknown %u",
455 RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr)));
456 switch(RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr)) {
457 case RSVP_OBJ_XRO_IPV4:
458 printf(", %s, %s/%u",
459 RSVP_OBJ_XRO_MASK_LOOSE(*obj_tptr) ? "Loose" : "Strict",
460 ipaddr_string(obj_tptr+2),
461 *(obj_tptr+6));
462 }
463 obj_tlen-=*(obj_tptr+1);
464 obj_tptr+=*(obj_tptr+1);
465 }
466 break;
467 default:
468 hexdump=TRUE;
469 }
470 break;
471 case RSVP_OBJ_HELLO:
472 switch(rsvp_obj_ctype) {
473 case RSVP_CTYPE_1:
474 case RSVP_CTYPE_2:
475 printf("\n\t Source Instance 0x%08x, Destination Instance 0x%08x",
476 EXTRACT_32BITS(obj_tptr),
477 EXTRACT_32BITS(obj_tptr+4));
478 obj_tlen-=8;
479 obj_tptr+=8;
480 break;
481 default:
482 hexdump=TRUE;
483 }
484 break;
485 case RSVP_OBJ_RESTART_CAPABILITY:
486 switch(rsvp_obj_ctype) {
487 case RSVP_CTYPE_1:
488 printf("\n\t Restart Time: %ums\n\t Recovery Time: %ums",
489 EXTRACT_16BITS(obj_tptr),
490 EXTRACT_16BITS(obj_tptr+4));
491 break;
492 default:
493 hexdump=TRUE;
494 }
495 break;
496 /*
497 * FIXME those are the defined objects that lack a decoder
498 * you are welcome to contribute code ;-)
499 */
500 case RSVP_OBJ_RSVP_HOP:
501 case RSVP_OBJ_INTEGRITY:
502 case RSVP_OBJ_TIME_VALUES:
503 case RSVP_OBJ_ERROR_SPEC:
504 case RSVP_OBJ_SCOPE:
505 case RSVP_OBJ_FILTERSPEC:
506 case RSVP_OBJ_SENDER_TSPEC:
507 case RSVP_OBJ_ADSPEC:
508 case RSVP_OBJ_POLICY_DATA:
509 case RSVP_OBJ_CONFIRM:
510 case RSVP_OBJ_MESSAGE_ID:
511 case RSVP_OBJ_MESSAGE_ID_ACK:
512 case RSVP_OBJ_MESSAGE_ID_LIST:
513 case RSVP_OBJ_RECOVERY_LABEL:
514 case RSVP_OBJ_UPSTREAM_LABEL:
515 case RSVP_OBJ_DETOUR:
516 case RSVP_OBJ_SUGGESTED_LABEL:
517 case RSVP_OBJ_PROPERTIES:
518 case RSVP_OBJ_FASTREROUTE:
519 case RSVP_OBJ_SESSION_ATTTRIBUTE:
520 default:
521 if (vflag <= 1)
522 print_unknown_data(obj_tptr,"\n\t ",obj_tlen);
523 break;
524 }
525 /* do we want to see an additionally hexdump ? */
526 if (vflag > 1 || hexdump==TRUE)
527 print_unknown_data(tptr+sizeof(sizeof(struct rsvp_object_header)),"\n\t ",
528 rsvp_obj_len-sizeof(struct rsvp_object_header));
529
530 tptr+=rsvp_obj_len;
531 tlen-=rsvp_obj_len;
532 }
533 return;
534 trunc:
535 printf("\n\t\t packet exceeded snapshot");
536 }
537
538