1 /* Copyright (c) 2001 NETLAB, Temple University
2 * Copyright (c) 2001 Protocol Engineering Lab, University of Delaware
4 * Jerry Heinz <gheinz@astro.temple.edu>
5 * John Fiore <jfiore@joda.cis.temple.edu>
6 * Armando L. Caro Jr. <acaro@cis.udel.edu>
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of the University nor of the Laboratory may be used
20 * to endorse or promote products derived from this software without
21 * specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 #define NETDISSECT_REWORKED
41 #include <tcpdump-stdinc.h>
43 #include "interface.h"
44 #include "addrtoname.h"
45 #include "extract.h" /* must come after interface.h */
53 * SCTP reference Implementation Copyright (C) 1999 Cisco And Motorola
55 * Redistribution and use in source and binary forms, with or without
56 * modification, are permitted provided that the following conditions
59 * 1. Redistributions of source code must retain the above copyright
60 * notice, this list of conditions and the following disclaimer.
62 * 2. Redistributions in binary form must reproduce the above copyright
63 * notice, this list of conditions and the following disclaimer in the
64 * documentation and/or other materials provided with the distribution.
66 * 3. Neither the name of Cisco nor of Motorola may be used
67 * to endorse or promote products derived from this software without
68 * specific prior written permission.
70 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
71 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
72 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
73 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
74 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
75 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
76 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
77 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
78 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
79 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
82 * This file is part of the SCTP reference Implementation
85 * Please send any bug reports or fixes you make to one of the following email
88 * rstewar1@email.mot.com
92 * Any bugs reported given to us we will try to fix... any fixes shared will
93 * be incorperated into the next SCTP release.
96 /* The valid defines for all message
97 * types know to SCTP. 0 is reserved
99 #define SCTP_DATA 0x00
100 #define SCTP_INITIATION 0x01
101 #define SCTP_INITIATION_ACK 0x02
102 #define SCTP_SELECTIVE_ACK 0x03
103 #define SCTP_HEARTBEAT_REQUEST 0x04
104 #define SCTP_HEARTBEAT_ACK 0x05
105 #define SCTP_ABORT_ASSOCIATION 0x06
106 #define SCTP_SHUTDOWN 0x07
107 #define SCTP_SHUTDOWN_ACK 0x08
108 #define SCTP_OPERATION_ERR 0x09
109 #define SCTP_COOKIE_ECHO 0x0a
110 #define SCTP_COOKIE_ACK 0x0b
111 #define SCTP_ECN_ECHO 0x0c
112 #define SCTP_ECN_CWR 0x0d
113 #define SCTP_SHUTDOWN_COMPLETE 0x0e
114 #define SCTP_FORWARD_CUM_TSN 0xc0
115 #define SCTP_RELIABLE_CNTL 0xc1
116 #define SCTP_RELIABLE_CNTL_ACK 0xc2
118 /* Data Chuck Specific Flags */
119 #define SCTP_DATA_FRAG_MASK 0x03
120 #define SCTP_DATA_MIDDLE_FRAG 0x00
121 #define SCTP_DATA_LAST_FRAG 0x01
122 #define SCTP_DATA_FIRST_FRAG 0x02
123 #define SCTP_DATA_NOT_FRAG 0x03
124 #define SCTP_DATA_UNORDERED 0x04
126 #define SCTP_ADDRMAX 60
132 /* the sctp common header */
136 u_int16_t destination
;
137 u_int32_t verificationTag
;
141 /* various descriptor parsers */
143 struct sctpChunkDesc
{
146 u_int16_t chunkLength
;
149 struct sctpParamDesc
{
151 u_int16_t paramLength
;
155 struct sctpRelChunkDesc
{
156 struct sctpChunkDesc chk
;
157 u_int32_t serialNumber
;
160 struct sctpVendorSpecificParam
{
161 struct sctpParamDesc p
; /* type must be 0xfffe */
162 u_int32_t vendorId
; /* vendor ID from RFC 1700 */
163 u_int16_t vendorSpecificType
;
164 u_int16_t vendorSpecificLen
;
168 /* Structures for the control parts */
172 /* Sctp association init request/ack */
174 /* this is used for init ack, too */
175 struct sctpInitiation
{
176 u_int32_t initTag
; /* tag of mine */
177 u_int32_t rcvWindowCredit
; /* rwnd */
178 u_int16_t NumPreopenStreams
; /* OS */
179 u_int16_t MaxInboundStreams
; /* MIS */
180 u_int32_t initialTSN
;
181 /* optional param's follow in sctpParamDesc form */
184 struct sctpV4IpAddress
{
185 struct sctpParamDesc p
; /* type is set to SCTP_IPV4_PARAM_TYPE, len=10 */
190 struct sctpV6IpAddress
{
191 struct sctpParamDesc p
; /* type is set to SCTP_IPV6_PARAM_TYPE, len=22 */
192 u_int8_t ipAddress
[16];
196 struct sctpParamDesc param
;
201 struct sctpCookiePreserve
{
202 struct sctpParamDesc p
; /* type is set to SCTP_COOKIE_PRESERVE, len=8 */
207 struct sctpTimeStamp
{
212 /* wire structure of my cookie */
213 struct cookieMessage
{
214 u_int32_t TieTag_curTag
; /* copied from assoc if present */
215 u_int32_t TieTag_hisTag
; /* copied from assoc if present */
216 int32_t cookieLife
; /* life I will award this cookie */
217 struct sctpTimeStamp timeEnteringState
; /* the time I built cookie */
218 struct sctpInitiation initAckISent
; /* the INIT-ACK that I sent to my peer */
219 u_int32_t addressWhereISent
[4]; /* I make this 4 ints so I get 128bits for future */
220 int32_t addrtype
; /* address type */
221 u_int16_t locScope
; /* V6 local scope flag */
222 u_int16_t siteScope
; /* V6 site scope flag */
223 /* at the end is tacked on the INIT chunk sent in
224 * its entirety and of course our
230 /* this guy is for use when
231 * I have a initiate message gloming the
235 struct sctpUnifiedInit
{
236 struct sctpChunkDesc uh
;
237 struct sctpInitiation initm
;
240 struct sctpSendableInit
{
241 struct sctpHeader mh
;
242 struct sctpUnifiedInit msg
;
246 /* Selective Acknowledgement
247 * has the following structure with
248 * a optional ammount of trailing int's
249 * on the last part (based on the numberOfDesc
253 struct sctpSelectiveAck
{
254 u_int32_t highestConseqTSN
;
255 u_int32_t updatedRwnd
;
256 u_int16_t numberOfdesc
;
257 u_int16_t numDupTsns
;
260 struct sctpSelectiveFrag
{
261 u_int16_t fragmentStart
;
262 u_int16_t fragmentEnd
;
266 struct sctpUnifiedSack
{
267 struct sctpChunkDesc uh
;
268 struct sctpSelectiveAck sack
;
271 /* for both RTT request/response the
275 struct sctpHBrequest
{
276 u_int32_t time_value_1
;
277 u_int32_t time_value_2
;
280 /* here is what I read and respond with to. */
281 struct sctpHBunified
{
282 struct sctpChunkDesc hdr
;
283 struct sctpParamDesc hb
;
287 /* here is what I send */
289 struct sctpChunkDesc hdr
;
290 struct sctpParamDesc hb
;
291 struct sctpHBrequest rtt
;
292 int8_t addrFmt
[SCTP_ADDRMAX
];
298 /* for the abort and shutdown ACK
299 * we must carry the init tag in the common header. Just the
300 * common header is all that is needed with a chunk descriptor.
302 struct sctpUnifiedAbort
{
303 struct sctpChunkDesc uh
;
306 struct sctpUnifiedAbortLight
{
307 struct sctpHeader mh
;
308 struct sctpChunkDesc uh
;
311 struct sctpUnifiedAbortHeavy
{
312 struct sctpHeader mh
;
313 struct sctpChunkDesc uh
;
318 /* For the graceful shutdown we must carry
319 * the tag (in common header) and the highest consequitive acking value
321 struct sctpShutdown
{
325 struct sctpUnifiedShutdown
{
326 struct sctpChunkDesc uh
;
327 struct sctpShutdown shut
;
330 /* in the unified message we add the trailing
331 * stream id since it is the only message
332 * that is defined as a operation error.
334 struct sctpOpErrorCause
{
339 struct sctpUnifiedOpError
{
340 struct sctpChunkDesc uh
;
341 struct sctpOpErrorCause c
;
344 struct sctpUnifiedStreamError
{
345 struct sctpHeader mh
;
346 struct sctpChunkDesc uh
;
347 struct sctpOpErrorCause c
;
352 struct staleCookieMsg
{
353 struct sctpHeader mh
;
354 struct sctpChunkDesc uh
;
355 struct sctpOpErrorCause c
;
359 /* the following is used in all sends
360 * where nothing is needed except the
361 * chunk/type i.e. shutdownAck Abort */
363 struct sctpUnifiedSingleMsg
{
364 struct sctpHeader mh
;
365 struct sctpChunkDesc uh
;
372 u_int32_t payloadtype
;
375 struct sctpUnifiedDatagram
{
376 struct sctpChunkDesc uh
;
377 struct sctpDataPart dp
;
381 struct sctpChunkDesc uh
;
382 u_int32_t Lowest_TSN
;
387 struct sctpChunkDesc uh
;
388 u_int32_t TSN_reduced_at
;
391 static const struct tok ForCES_channels
[] = {
392 { CHAN_HP
, "ForCES HP" },
393 { CHAN_MP
, "ForCES MP" },
394 { CHAN_LP
, "ForCES LP" },
398 static inline int isForCES_port(u_short Port
)
410 void sctp_print(netdissect_options
*ndo
,
411 const u_char
*bp
, /* beginning of sctp packet */
412 const u_char
*bp2
, /* beginning of enclosing */
413 u_int sctpPacketLength
) /* ip packet */
415 const struct sctpHeader
*sctpPktHdr
;
418 const struct ip6_hdr
*ip6
;
420 const void *endPacketPtr
;
421 u_short sourcePort
, destPort
;
423 const struct sctpChunkDesc
*chunkDescPtr
;
424 const void *nextChunk
;
429 sctpPktHdr
= (const struct sctpHeader
*) bp
;
430 endPacketPtr
= (const u_char
*)sctpPktHdr
+sctpPacketLength
;
432 if( (u_long
) endPacketPtr
> (u_long
) ndo
->ndo_snapend
)
433 endPacketPtr
= (const void *) ndo
->ndo_snapend
;
434 ip
= (struct ip
*)bp2
;
437 ip6
= (const struct ip6_hdr
*)bp2
;
441 ND_TCHECK(*sctpPktHdr
);
443 if (sctpPacketLength
< sizeof(struct sctpHeader
))
445 ND_PRINT((ndo
, "truncated-sctp - %ld bytes missing!",
446 (long)sctpPacketLength
-sizeof(struct sctpHeader
)));
450 /* sctpPacketLength -= sizeof(struct sctpHeader); packet length */
451 /* is now only as long as the payload */
453 sourcePort
= EXTRACT_16BITS(&sctpPktHdr
->source
);
454 destPort
= EXTRACT_16BITS(&sctpPktHdr
->destination
);
458 ND_PRINT((ndo
, "%s.%d > %s.%d: sctp",
459 ip6addr_string(&ip6
->ip6_src
),
461 ip6addr_string(&ip6
->ip6_dst
),
466 ND_PRINT((ndo
, "%s.%d > %s.%d: sctp",
467 ipaddr_string(&ip
->ip_src
),
469 ipaddr_string(&ip
->ip_dst
),
474 if (isForCES_port(sourcePort
)) {
475 ND_PRINT((ndo
, "[%s]", tok2str(ForCES_channels
, NULL
, sourcePort
)));
478 if (isForCES_port(destPort
)) {
479 ND_PRINT((ndo
, "[%s]", tok2str(ForCES_channels
, NULL
, destPort
)));
483 if (ndo
->ndo_vflag
>= 2)
487 /* cycle through all chunks, printing information on each one */
489 chunkDescPtr
= (const struct sctpChunkDesc
*)
490 ((const u_char
*) sctpPktHdr
+ sizeof(struct sctpHeader
));
491 chunkDescPtr
!= NULL
&&
493 ((const u_char
*) chunkDescPtr
+ sizeof(struct sctpChunkDesc
))
496 chunkDescPtr
= (const struct sctpChunkDesc
*) nextChunk
, chunkCount
++)
498 u_int16_t chunkLength
;
499 const u_char
*chunkEnd
;
502 ND_TCHECK(*chunkDescPtr
);
503 chunkLength
= EXTRACT_16BITS(&chunkDescPtr
->chunkLength
);
504 if (chunkLength
< sizeof(*chunkDescPtr
)) {
505 ND_PRINT((ndo
, "%s%d) [Bad chunk length %u]", sep
, chunkCount
+1, chunkLength
));
509 ND_TCHECK2(*((u_int8_t
*)chunkDescPtr
), chunkLength
);
510 chunkEnd
= ((const u_char
*)chunkDescPtr
+ chunkLength
);
512 align
=chunkLength
% 4;
516 nextChunk
= (const void *) (chunkEnd
+ align
);
518 ND_PRINT((ndo
, "%s%d) ", sep
, chunkCount
+1));
519 switch (chunkDescPtr
->chunkID
)
523 const struct sctpDataPart
*dataHdrPtr
;
525 ND_PRINT((ndo
, "[DATA] "));
527 if ((chunkDescPtr
->chunkFlg
& SCTP_DATA_UNORDERED
)
528 == SCTP_DATA_UNORDERED
)
529 ND_PRINT((ndo
, "(U)"));
531 if ((chunkDescPtr
->chunkFlg
& SCTP_DATA_FIRST_FRAG
)
532 == SCTP_DATA_FIRST_FRAG
)
533 ND_PRINT((ndo
, "(B)"));
535 if ((chunkDescPtr
->chunkFlg
& SCTP_DATA_LAST_FRAG
)
536 == SCTP_DATA_LAST_FRAG
)
537 ND_PRINT((ndo
, "(E)"));
539 if( ((chunkDescPtr
->chunkFlg
& SCTP_DATA_UNORDERED
)
540 == SCTP_DATA_UNORDERED
)
542 ((chunkDescPtr
->chunkFlg
& SCTP_DATA_FIRST_FRAG
)
543 == SCTP_DATA_FIRST_FRAG
)
545 ((chunkDescPtr
->chunkFlg
& SCTP_DATA_LAST_FRAG
)
546 == SCTP_DATA_LAST_FRAG
) )
547 ND_PRINT((ndo
, " "));
549 dataHdrPtr
=(const struct sctpDataPart
*)(chunkDescPtr
+1);
551 ND_PRINT((ndo
, "[TSN: %u] ", EXTRACT_32BITS(&dataHdrPtr
->TSN
)));
552 ND_PRINT((ndo
, "[SID: %u] ", EXTRACT_16BITS(&dataHdrPtr
->streamId
)));
553 ND_PRINT((ndo
, "[SSEQ %u] ", EXTRACT_16BITS(&dataHdrPtr
->sequence
)));
554 ND_PRINT((ndo
, "[PPID 0x%x] ", EXTRACT_32BITS(&dataHdrPtr
->payloadtype
)));
557 const u_char
*payloadPtr
;
558 u_int chunksize
= sizeof(struct sctpDataPart
)+
559 sizeof(struct sctpChunkDesc
);
560 payloadPtr
= (const u_char
*) (dataHdrPtr
+ 1);
561 if (EXTRACT_16BITS(&chunkDescPtr
->chunkLength
) <
562 sizeof(struct sctpDataPart
)+
563 sizeof(struct sctpChunkDesc
)+1) {
564 /* Less than 1 byte of chunk payload */
565 ND_PRINT((ndo
, "bogus ForCES chunk length %u]",
566 EXTRACT_16BITS(&chunkDescPtr
->chunkLength
)));
570 forces_print(ndo
, payloadPtr
, EXTRACT_16BITS(&chunkDescPtr
->chunkLength
)- chunksize
);
571 } else if (ndo
->ndo_vflag
>= 2) { /* if verbose output is specified */
572 /* at the command line */
573 const u_char
*payloadPtr
;
575 ND_PRINT((ndo
, "[Payload"));
577 if (!ndo
->ndo_suppress_default_print
) {
578 payloadPtr
= (const u_char
*) (++dataHdrPtr
);
579 ND_PRINT((ndo
, ":"));
580 if (EXTRACT_16BITS(&chunkDescPtr
->chunkLength
) <
581 sizeof(struct sctpDataPart
)+
582 sizeof(struct sctpChunkDesc
)+1) {
583 /* Less than 1 byte of chunk payload */
584 ND_PRINT((ndo
, "bogus chunk length %u]",
585 EXTRACT_16BITS(&chunkDescPtr
->chunkLength
)));
588 default_print(payloadPtr
,
589 EXTRACT_16BITS(&chunkDescPtr
->chunkLength
) -
590 (sizeof(struct sctpDataPart
)+
591 sizeof(struct sctpChunkDesc
)));
593 ND_PRINT((ndo
, "]"));
597 case SCTP_INITIATION
:
599 const struct sctpInitiation
*init
;
601 ND_PRINT((ndo
, "[INIT] "));
602 init
=(const struct sctpInitiation
*)(chunkDescPtr
+1);
603 ND_PRINT((ndo
, "[init tag: %u] ", EXTRACT_32BITS(&init
->initTag
)));
604 ND_PRINT((ndo
, "[rwnd: %u] ", EXTRACT_32BITS(&init
->rcvWindowCredit
)));
605 ND_PRINT((ndo
, "[OS: %u] ", EXTRACT_16BITS(&init
->NumPreopenStreams
)));
606 ND_PRINT((ndo
, "[MIS: %u] ", EXTRACT_16BITS(&init
->MaxInboundStreams
)));
607 ND_PRINT((ndo
, "[init TSN: %u] ", EXTRACT_32BITS(&init
->initialTSN
)));
609 #if(0) /* ALC you can add code for optional params here */
610 if( (init
+1) < chunkEnd
)
611 ND_PRINT((ndo
, " @@@@@ UNFINISHED @@@@@@%s\n",
612 "Optional params present, but not printed."));
616 case SCTP_INITIATION_ACK
:
618 const struct sctpInitiation
*init
;
620 ND_PRINT((ndo
, "[INIT ACK] "));
621 init
=(const struct sctpInitiation
*)(chunkDescPtr
+1);
622 ND_PRINT((ndo
, "[init tag: %u] ", EXTRACT_32BITS(&init
->initTag
)));
623 ND_PRINT((ndo
, "[rwnd: %u] ", EXTRACT_32BITS(&init
->rcvWindowCredit
)));
624 ND_PRINT((ndo
, "[OS: %u] ", EXTRACT_16BITS(&init
->NumPreopenStreams
)));
625 ND_PRINT((ndo
, "[MIS: %u] ", EXTRACT_16BITS(&init
->MaxInboundStreams
)));
626 ND_PRINT((ndo
, "[init TSN: %u] ", EXTRACT_32BITS(&init
->initialTSN
)));
628 #if(0) /* ALC you can add code for optional params here */
629 if( (init
+1) < chunkEnd
)
630 ND_PRINT((ndo
, " @@@@@ UNFINISHED @@@@@@%s\n",
631 "Optional params present, but not printed."));
635 case SCTP_SELECTIVE_ACK
:
637 const struct sctpSelectiveAck
*sack
;
638 const struct sctpSelectiveFrag
*frag
;
640 const u_char
*dupTSN
;
642 ND_PRINT((ndo
, "[SACK] "));
643 sack
=(const struct sctpSelectiveAck
*)(chunkDescPtr
+1);
644 ND_PRINT((ndo
, "[cum ack %u] ", EXTRACT_32BITS(&sack
->highestConseqTSN
)));
645 ND_PRINT((ndo
, "[a_rwnd %u] ", EXTRACT_32BITS(&sack
->updatedRwnd
)));
646 ND_PRINT((ndo
, "[#gap acks %u] ", EXTRACT_16BITS(&sack
->numberOfdesc
)));
647 ND_PRINT((ndo
, "[#dup tsns %u] ", EXTRACT_16BITS(&sack
->numDupTsns
)));
651 for (frag
= ( (const struct sctpSelectiveFrag
*)
652 ((const struct sctpSelectiveAck
*) sack
+1)),
654 (const void *)frag
< nextChunk
&& fragNo
< EXTRACT_16BITS(&sack
->numberOfdesc
);
656 ND_PRINT((ndo
, "\n\t\t[gap ack block #%d: start = %u, end = %u] ",
658 EXTRACT_32BITS(&sack
->highestConseqTSN
) + EXTRACT_16BITS(&frag
->fragmentStart
),
659 EXTRACT_32BITS(&sack
->highestConseqTSN
) + EXTRACT_16BITS(&frag
->fragmentEnd
)));
662 /* print duplicate TSNs */
663 for (dupTSN
= (const u_char
*)frag
, tsnNo
=0;
664 (const void *) dupTSN
< nextChunk
&& tsnNo
<EXTRACT_16BITS(&sack
->numDupTsns
);
665 dupTSN
+= 4, tsnNo
++)
666 ND_PRINT((ndo
, "\n\t\t[dup TSN #%u: %u] ", tsnNo
+1,
667 EXTRACT_32BITS(dupTSN
)));
671 case SCTP_HEARTBEAT_REQUEST
:
672 ND_PRINT((ndo
, "[HB REQ] "));
674 case SCTP_HEARTBEAT_ACK
:
675 ND_PRINT((ndo
, "[HB ACK] "));
677 case SCTP_ABORT_ASSOCIATION
:
678 ND_PRINT((ndo
, "[ABORT] "));
681 ND_PRINT((ndo
, "[SHUTDOWN] "));
683 case SCTP_SHUTDOWN_ACK
:
684 ND_PRINT((ndo
, "[SHUTDOWN ACK] "));
686 case SCTP_OPERATION_ERR
:
687 ND_PRINT((ndo
, "[OP ERR] "));
689 case SCTP_COOKIE_ECHO
:
690 ND_PRINT((ndo
, "[COOKIE ECHO] "));
692 case SCTP_COOKIE_ACK
:
693 ND_PRINT((ndo
, "[COOKIE ACK] "));
696 ND_PRINT((ndo
, "[ECN ECHO] "));
699 ND_PRINT((ndo
, "[ECN CWR] "));
701 case SCTP_SHUTDOWN_COMPLETE
:
702 ND_PRINT((ndo
, "[SHUTDOWN COMPLETE] "));
704 case SCTP_FORWARD_CUM_TSN
:
705 ND_PRINT((ndo
, "[FOR CUM TSN] "));
707 case SCTP_RELIABLE_CNTL
:
708 ND_PRINT((ndo
, "[REL CTRL] "));
710 case SCTP_RELIABLE_CNTL_ACK
:
711 ND_PRINT((ndo
, "[REL CTRL ACK] "));
714 ND_PRINT((ndo
, "[Unknown chunk type: 0x%x]", chunkDescPtr
->chunkID
));
718 if (ndo
->ndo_vflag
< 2)
724 ND_PRINT((ndo
, "[|sctp]"));