2 * Copyright (c) 2001-2007, by Weongyo Jeong. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.
10 * b) Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the distribution.
14 * c) Neither the name of Cisco Systems, Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived
16 * from this software without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
34 static char sccsid[] = "@(#)sctp.c 0.1 (Berkeley) 4/18/2007";
38 #include <sys/cdefs.h>
39 __FBSDID("$FreeBSD$");
41 #include <sys/param.h>
42 #include <sys/queue.h>
43 #include <sys/types.h>
44 #include <sys/socket.h>
45 #include <sys/socketvar.h>
46 #include <sys/sysctl.h>
47 #include <sys/protosw.h>
49 #include <netinet/in.h>
50 #include <netinet/sctp.h>
51 #include <netinet/sctp_constants.h>
52 #include <arpa/inet.h>
67 void inetprint (struct in_addr *, int, const char *, int);
68 static void sctp_statesprint(uint32_t state);
70 #define NETSTAT_SCTP_STATES_CLOSED 0x0
71 #define NETSTAT_SCTP_STATES_BOUND 0x1
72 #define NETSTAT_SCTP_STATES_LISTEN 0x2
73 #define NETSTAT_SCTP_STATES_COOKIE_WAIT 0x3
74 #define NETSTAT_SCTP_STATES_COOKIE_ECHOED 0x4
75 #define NETSTAT_SCTP_STATES_ESTABLISHED 0x5
76 #define NETSTAT_SCTP_STATES_SHUTDOWN_SENT 0x6
77 #define NETSTAT_SCTP_STATES_SHUTDOWN_RECEIVED 0x7
78 #define NETSTAT_SCTP_STATES_SHUTDOWN_ACK_SENT 0x8
79 #define NETSTAT_SCTP_STATES_SHUTDOWN_PENDING 0x9
81 char *sctpstates[] = {
94 LIST_HEAD(xladdr_list, xladdr_entry) xladdr_head;
96 struct xsctp_laddr *xladdr;
97 LIST_ENTRY(xladdr_entry) xladdr_entries;
100 LIST_HEAD(xraddr_list, xraddr_entry) xraddr_head;
101 struct xraddr_entry {
102 struct xsctp_raddr *xraddr;
103 LIST_ENTRY(xraddr_entry) xraddr_entries;
107 sctp_skip_xinpcb_ifneed(char *buf, const size_t buflen, size_t *offset)
110 struct xsctp_tcb *xstcb;
111 struct xsctp_raddr *xraddr;
112 struct xsctp_laddr *xladdr;
114 while (*offset < buflen) {
115 xladdr = (struct xsctp_laddr *)(buf + *offset);
116 *offset += sizeof(struct xsctp_laddr);
117 if (xladdr->last == 1)
121 while (*offset < buflen) {
122 xstcb = (struct xsctp_tcb *)(buf + *offset);
123 *offset += sizeof(struct xsctp_tcb);
124 if (xstcb->last == 1)
129 while (*offset < buflen) {
130 xladdr = (struct xsctp_laddr *)(buf + *offset);
131 *offset += sizeof(struct xsctp_laddr);
132 if (xladdr->last == 1)
136 while (*offset < buflen) {
137 xraddr = (struct xsctp_raddr *)(buf + *offset);
138 *offset += sizeof(struct xsctp_raddr);
139 if (xraddr->last == 1)
145 * If Lflag is set, we don't care about the return value.
154 sctp_process_tcb(struct xsctp_tcb *xstcb, const char *name,
155 char *buf, const size_t buflen, size_t *offset, int *indent)
157 int i, xl_total = 0, xr_total = 0, x_max;
159 struct xsctp_raddr *xraddr;
160 struct xsctp_laddr *xladdr;
161 struct xladdr_entry *prev_xl = NULL, *xl = NULL, *xl_tmp;
162 struct xraddr_entry *prev_xr = NULL, *xr = NULL, *xr_tmp;
164 struct sockaddr_in6 *in6;
167 LIST_INIT(&xladdr_head);
168 LIST_INIT(&xraddr_head);
171 * Make `struct xladdr_list' list and `struct xraddr_list' list
172 * to handle the address flexibly.
174 while (*offset < buflen) {
175 xladdr = (struct xsctp_laddr *)(buf + *offset);
176 *offset += sizeof(struct xsctp_laddr);
177 if (xladdr->last == 1)
181 xl = malloc(sizeof(struct xladdr_entry));
183 warnx("malloc %lu bytes",
184 (u_long)sizeof(struct xladdr_entry));
189 LIST_INSERT_HEAD(&xladdr_head, xl, xladdr_entries);
191 LIST_INSERT_AFTER(prev_xl, xl, xladdr_entries);
195 while (*offset < buflen) {
196 xraddr = (struct xsctp_raddr *)(buf + *offset);
197 *offset += sizeof(struct xsctp_raddr);
198 if (xraddr->last == 1)
202 xr = malloc(sizeof(struct xraddr_entry));
204 warnx("malloc %lu bytes",
205 (u_long)sizeof(struct xraddr_entry));
210 LIST_INSERT_HEAD(&xraddr_head, xr, xraddr_entries);
212 LIST_INSERT_AFTER(prev_xr, xr, xraddr_entries);
217 * Let's print the address infos.
219 xl = LIST_FIRST(&xladdr_head);
220 xr = LIST_FIRST(&xraddr_head);
221 x_max = (xl_total > xr_total) ? xl_total : xr_total;
222 for (i = 0; i < x_max; i++) {
223 if (((*indent == 0) && i > 0) || *indent > 0)
224 printf("%-11s ", " ");
227 sa = &(xl->xladdr->address.sa);
228 if ((sa->sa_family) == AF_INET)
229 inetprint(&((struct sockaddr_in *)sa)->sin_addr,
230 htons(xstcb->local_port),
234 in6 = (struct sockaddr_in6 *)sa;
235 inet6print(&in6->sin6_addr,
236 htons(xstcb->local_port),
242 if (xr != NULL && !Lflag) {
243 sa = &(xr->xraddr->address.sa);
244 if ((sa->sa_family) == AF_INET)
245 inetprint(&((struct sockaddr_in *)sa)->sin_addr,
246 htons(xstcb->remote_port),
250 in6 = (struct sockaddr_in6 *)sa;
251 inet6print(&in6->sin6_addr,
252 htons(xstcb->remote_port),
259 xl = LIST_NEXT(xl, xladdr_entries);
261 xr = LIST_NEXT(xr, xraddr_entries);
263 if (i == 0 && !Lflag)
264 sctp_statesprint(xstcb->state);
272 * Free the list which be used to handle the address.
274 xl = LIST_FIRST(&xladdr_head);
276 xl_tmp = LIST_NEXT(xl, xladdr_entries);
281 xr = LIST_FIRST(&xraddr_head);
283 xr_tmp = LIST_NEXT(xr, xraddr_entries);
290 uint32_t sctp_pdup[64];
295 sctp_process_inpcb(struct xsctp_inpcb *xinpcb, const char *name,
296 char *buf, const size_t buflen, size_t *offset)
298 int offset_backup, indent = 0, xladdr_total = 0, is_listening = 0;
299 static int first = 1;
301 struct xsctp_tcb *xstcb;
302 struct xsctp_laddr *xladdr;
305 struct sockaddr_in6 *in6;
308 if ((xinpcb->flags & SCTP_PCB_FLAGS_TCPTYPE) ==
309 SCTP_PCB_FLAGS_TCPTYPE && xinpcb->maxqlen > 0)
312 if (!Lflag && !is_listening &&
313 !(xinpcb->flags & SCTP_PCB_FLAGS_CONNECTED)) {
317 for (i = 0; i < sctp_pcnt; i++) {
318 if (sctp_pdup[i] == xinpcb->flags) {
324 sctp_pdup[sctp_pcnt++] = xinpcb->flags;
327 printf("[0x%08x]", xinpcb->flags);
330 offset_backup = *offset;
331 if (!sctp_skip_xinpcb_ifneed(buf, buflen, offset))
333 *offset = offset_backup;
338 printf("Active SCTP associations");
340 printf(" (including servers)");
342 printf("Current listen queue sizes (qlen/maxqlen)");
345 printf("%-8.8s ", "Socket");
347 printf("%-5.5s %-5.5s %-8.8s %-22.22s\n",
348 "Proto", "Type", "Listen", "Local Address");
350 printf((Aflag && !Wflag) ?
351 "%-5.5s %-5.5s %-18.18s %-18.18s %s\n" :
352 "%-5.5s %-5.5s %-22.22s %-22.22s %s\n",
354 "Local Address", "Foreign Address",
358 if (Lflag && xinpcb->maxqlen == 0) {
359 (int)sctp_skip_xinpcb_ifneed(buf, buflen, offset);
363 printf("%8lx ", (u_long)xinpcb);
365 printf("%-5.5s ", name);
367 if (xinpcb->flags & SCTP_PCB_FLAGS_TCPTYPE)
369 else if (xinpcb->flags & SCTP_PCB_FLAGS_UDPTYPE)
374 printf("%-5.5s ", tname);
379 snprintf(buf1, 9, "%hu/%hu", xinpcb->qlen, xinpcb->maxqlen);
380 printf("%-8.8s ", buf1);
383 * process the local address. This routine are used for Lflag.
385 while (*offset < buflen) {
386 xladdr = (struct xsctp_laddr *)(buf + *offset);
387 *offset += sizeof(struct xsctp_laddr);
388 if (xladdr->last == 1)
391 if (!Lflag && !is_listening)
394 if (xladdr_total != 0)
396 if (xladdr_total > 0)
398 "%-20.20s " : "%-11.11s ", " ");
400 sa = &(xladdr->address.sa);
401 if ((sa->sa_family) == AF_INET)
402 inetprint(&((struct sockaddr_in *)sa)->sin_addr,
403 htons(xinpcb->local_port), name, numeric_port);
406 in6 = (struct sockaddr_in6 *)sa;
407 inet6print(&in6->sin6_addr,
408 htons(xinpcb->local_port), name, numeric_port);
412 if (!Lflag && xladdr_total == 0 && is_listening == 1)
413 printf("%-22.22s LISTEN", " ");
418 xstcb = (struct xsctp_tcb *)(buf + *offset);
419 *offset += sizeof(struct xsctp_tcb);
420 while (xstcb->last == 0 && *offset < buflen) {
421 sctp_process_tcb(xstcb, name, buf, buflen, offset, &indent);
423 xstcb = (struct xsctp_tcb *)(buf + *offset);
424 *offset += sizeof(struct xsctp_tcb);
431 * Print a summary of SCTP connections related to an Internet
435 sctp_protopr(u_long off __unused,
436 const char *name, int af1, int proto)
439 const char *mibvar = "net.inet.sctp.assoclist";
442 struct xsctp_inpcb *xinpcb;
444 if (proto != IPPROTO_SCTP)
447 if (sysctlbyname(mibvar, 0, &len, 0, 0) < 0) {
449 warn("sysctl: %s", mibvar);
452 if ((buf = malloc(len)) == 0) {
453 warnx("malloc %lu bytes", (u_long)len);
456 if (sysctlbyname(mibvar, buf, &len, 0, 0) < 0) {
457 warn("sysctl: %s", mibvar);
462 xinpcb = (struct xsctp_inpcb *)(buf + offset);
463 offset += sizeof(struct xsctp_inpcb);
464 while (xinpcb->last == 0 && offset < len) {
465 sctp_process_inpcb(xinpcb, name, buf, (const size_t)len,
468 xinpcb = (struct xsctp_inpcb *)(buf + offset);
469 offset += sizeof(struct xsctp_inpcb);
476 sctp_statesprint(uint32_t state)
481 case SCTP_STATE_COOKIE_WAIT:
482 idx = NETSTAT_SCTP_STATES_COOKIE_WAIT;
484 case SCTP_STATE_COOKIE_ECHOED:
485 idx = NETSTAT_SCTP_STATES_COOKIE_ECHOED;
487 case SCTP_STATE_OPEN:
488 idx = NETSTAT_SCTP_STATES_ESTABLISHED;
490 case SCTP_STATE_SHUTDOWN_SENT:
491 idx = NETSTAT_SCTP_STATES_SHUTDOWN_SENT;
493 case SCTP_STATE_SHUTDOWN_RECEIVED:
494 idx = NETSTAT_SCTP_STATES_SHUTDOWN_RECEIVED;
496 case SCTP_STATE_SHUTDOWN_ACK_SENT:
497 idx = NETSTAT_SCTP_STATES_SHUTDOWN_ACK_SENT;
499 case SCTP_STATE_SHUTDOWN_PENDING:
500 idx = NETSTAT_SCTP_STATES_SHUTDOWN_PENDING;
503 printf("UNKNOWN 0x%08x", state);
507 printf("%s", sctpstates[idx]);
511 * Dump SCTP statistics structure.
514 sctp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
516 struct sctpstat sctpstat, zerostat;
517 size_t len = sizeof(sctpstat);
521 memset(&zerostat, 0, len);
522 if (sysctlbyname("net.inet.sctp.stats", &sctpstat, &len,
523 zflag ? &zerostat : NULL, zflag ? len : 0) < 0) {
524 warn("sysctl: net.inet.sctp.stats");
528 kread(off, &sctpstat, len);
530 printf ("%s:\n", name);
532 #define p(f, m) if (sctpstat.f || sflag <= 1) \
533 printf(m, sctpstat.f, plural(sctpstat.f))
534 #define p1a(f, m) if (sctpstat.f || sflag <= 1) \
535 printf(m, sctpstat.f)
536 #define p2(f1, f2, m) if (sctpstat.f1 || sctpstat.f2 || sflag <= 1) \
537 printf(m, sctpstat.f1, plural(sctpstat.f1), sctpstat.f2, plural(sctpstat.f2))
538 #define p2a(f1, f2, m) if (sctpstat.f1 || sctpstat.f2 || sflag <= 1) \
539 printf(m, sctpstat.f1, plural(sctpstat.f1), sctpstat.f2)
540 #define p3(f, m) if (sctpstat.f || sflag <= 1) \
541 printf(m, sctpstat.f, plurales(sctpstat.f))
546 p(sctps_recvpackets, "\t%lu input packet%s\n");
547 p(sctps_recvdatagrams, "\t\t%lu datagram%s\n");
548 p(sctps_recvpktwithdata, "\t\t%lu packet%s that had data\n");
549 p(sctps_recvsacks, "\t\t%lu input SACK chunk%s\n");
550 p(sctps_recvdata, "\t\t%lu input DATA chunk%s\n");
551 p(sctps_recvdupdata, "\t\t%lu duplicate DATA chunk%s\n");
552 p(sctps_recvheartbeat, "\t\t%lu input HB chunk%s\n");
553 p(sctps_recvheartbeatack, "\t\t%lu HB-ACK chunk%s\n");
554 p(sctps_recvecne, "\t\t%lu input ECNE chunk%s\n");
555 p(sctps_recvauth, "\t\t%lu input AUTH chunk%s\n");
556 p(sctps_recvauthmissing, "\t\t%lu chunk%s missing AUTH\n");
557 p(sctps_recvivalhmacid, "\t\t%lu invalid HMAC id%s received\n");
558 p(sctps_recvivalkeyid, "\t\t%lu invalid %secret ids received\n");
559 p1a(sctps_recvauthfailed, "\t\t%lu auth failed\n");
560 p(sctps_recvexpress, "\t\t%lu fa%st path receives all one chunk\n");
561 p(sctps_recvexpressm, "\t\t%lu fa%st path multi-part data\n");
566 p(sctps_sendpackets, "\t%lu output packet%s\n");
567 p(sctps_sendsacks, "\t\t%lu output SACK%s\n");
568 p(sctps_senddata, "\t\t%lu output DATA chunk%s\n");
569 p(sctps_sendretransdata, "\t\t%lu retran%smitted DATA chunks\n");
570 p(sctps_sendfastretrans, "\t\t%lu fa%st retransmitted DATA chunks\n");
571 p(sctps_sendmultfastretrans, "\t\t%lu FR'%s that happened more "
572 "than once to same chunk.\n");
573 p(sctps_sendheartbeat, "\t\t%lu intput HB chunk%s\n");
574 p(sctps_sendecne, "\t\t%lu output ECNE chunk%s\n");
575 p(sctps_sendauth, "\t\t%lu output AUTH chunk%s\n");
576 p1a(sctps_senderrors, "\t\t%lu ip_output error counter\n");
579 * PCKDROPREP statistics
581 printf("\tPacket drop statistics:\n");
582 p1a(sctps_pdrpfmbox, "\t\t%lu from middle box\n");
583 p(sctps_pdrpfehos, "\t\t%lu from end ho%st\n");
584 p1a(sctps_pdrpmbda, "\t\t%lu with data\n");
585 p1a(sctps_pdrpmbct, "\t\t%lu non-data, non-endhost\n");
586 p(sctps_pdrpbwrpt, "\t\t%lu non-endho%st, bandwidth rep only\n");
587 p1a(sctps_pdrpcrupt, "\t\t%lu not enough for chunk header\n");
588 p1a(sctps_pdrpnedat, "\t\t%lu not enough data to confirm\n");
589 p(sctps_pdrppdbrk, "\t\t%lu where proce%ss_chunk_drop said break\n");
590 p1a(sctps_pdrptsnnf, "\t\t%lu failed to find TSN\n");
591 p(sctps_pdrpdnfnd, "\t\t%lu attempt rever%se TSN lookup\n");
592 p(sctps_pdrpdiwnp, "\t\t%lu e-ho%st confirms zero-rwnd\n");
593 p(sctps_pdrpdizrw, "\t\t%lu midbox confirm%s no space\n");
594 p1a(sctps_pdrpbadd, "\t\t%lu data did not match TSN\n");
595 p(sctps_pdrpmark, "\t\t%lu TSN'%s marked for Fast Retran\n");
600 printf("\tTimeouts:\n");
601 p(sctps_timoiterator, "\t\t%lu iterator timer%s fired\n");
602 p(sctps_timodata, "\t\t%lu T3 data time out%s\n");
603 p(sctps_timowindowprobe, "\t\t%lu window probe (T3) timer%s fired\n");
604 p(sctps_timoinit, "\t\t%lu INIT timer%s fired\n");
605 p(sctps_timosack, "\t\t%lu %sack timers fired\n");
606 p(sctps_timoshutdown, "\t\t%lu %shutdown timers fired\n");
607 p(sctps_timoheartbeat, "\t\t%lu heartbeat timer%s fired\n");
608 p1a(sctps_timocookie, "\t\t%lu a cookie timeout fired\n");
609 p1a(sctps_timosecret, "\t\t%lu an endpoint changed its cookie"
611 p(sctps_timopathmtu, "\t\t%lu PMTU timer%s fired\n");
612 p(sctps_timoshutdownack, "\t\t%lu %shutdown ack timers fired\n");
613 p(sctps_timoshutdownguard, "\t\t%lu %shutdown guard timers fired\n");
614 p(sctps_timostrmrst, "\t\t%lu %stream reset timers fired\n");
615 p(sctps_timoearlyfr, "\t\t%lu early FR timer%s fired\n");
616 p1a(sctps_timoasconf, "\t\t%lu an asconf timer fired\n");
617 p1a(sctps_timoautoclose, "\t\t%lu auto close timer fired\n");
618 p(sctps_timoassockill, "\t\t%lu a%soc free timers expired\n");
619 p(sctps_timoinpkill, "\t\t%lu inp free timer%s expired\n");
623 * Early fast retransmission counters
625 p(sctps_earlyfrstart, "\t%lu TODO:%sctps_earlyfrstart\n");
626 p(sctps_earlyfrstop, "\t%lu TODO:sctp%s_earlyfrstop\n");
627 p(sctps_earlyfrmrkretrans, "\t%lu TODO:%sctps_earlyfrmrkretrans\n");
628 p(sctps_earlyfrstpout, "\t%lu TODO:%sctps_earlyfrstpout\n");
629 p(sctps_earlyfrstpidsck1, "\t%lu TODO:%sctps_earlyfrstpidsck1\n");
630 p(sctps_earlyfrstpidsck2, "\t%lu TODO:%sctps_earlyfrstpidsck2\n");
631 p(sctps_earlyfrstpidsck3, "\t%lu TODO:%sctps_earlyfrstpidsck3\n");
632 p(sctps_earlyfrstpidsck4, "\t%lu TODO:%sctps_earlyfrstpidsck4\n");
633 p(sctps_earlyfrstrid, "\t%lu TODO:%sctps_earlyfrstrid\n");
634 p(sctps_earlyfrstrout, "\t%lu TODO:%sctps_earlyfrstrout\n");
635 p(sctps_earlyfrstrtmr, "\t%lu TODO:%sctps_earlyfrstrtmr\n");
641 p(sctps_hdrops, "\t%lu packet %shorter than header\n");
642 p(sctps_badsum, "\t%lu check%sum error\n");
643 p1a(sctps_noport, "\t%lu no endpoint for port\n");
644 p1a(sctps_badvtag, "\t%lu bad v-tag\n");
645 p1a(sctps_badsid, "\t%lu bad SID\n");
646 p1a(sctps_nomem, "\t%lu no memory\n");
647 p1a(sctps_fastretransinrtt, "\t%lu number of multiple FR in a RTT "
650 p(sctps_markedretrans, "\t%lu TODO:%sctps_markedretrans\n");
652 p(sctps_naglesent, "\t%lu nagle allowed %sending\n");
653 p(sctps_naglequeued, "\t%lu nagle doe%s't allow sending\n");
654 p(sctps_maxburstqueued, "\t%lu max bur%st dosn't allow sending\n");
655 p(sctps_ifnomemqueued, "\t%lu look ahead tell%s us no memory in "
657 p(sctps_windowprobed, "\t%lu numbers of window probe%s sent\n");
658 p(sctps_lowlevelerr, "\t%lu time%s an output error to clamp "
659 "down on next user send.\n");
660 p(sctps_lowlevelerrusr, "\t%lu time%s sctp_senderrors were "
661 "caused from a user\n");
662 p(sctps_datadropchklmt, "\t%lu number of in data drop%s due to "
663 "chunk limit reached\n");
664 p(sctps_datadroprwnd, "\t%lu number of in data drop%s due to rwnd "
666 p(sctps_ecnereducedcwnd, "\t%lu time%s a ECN reduced "
668 p(sctps_vtagexpress, "\t%lu u%sed express lookup via vtag\n");
669 p(sctps_vtagbogus, "\t%lu colli%sion in express lookup.\n");
670 p(sctps_primary_randry, "\t%lu time%s the sender ran dry "
671 "of user data on primary\n");
672 p1a(sctps_cmt_randry, "\t%lu same for above\n");
673 p(sctps_slowpath_sack, "\t%lu sack%s the slow way\n");
674 p(sctps_wu_sacks_sent, "\t%lu window update only %sacks sent\n");
675 p(sctps_sends_with_flags, "\t%lu %sends with sinfo_flags !=0\n");
676 p(sctps_sends_with_unord, "\t%lu unordered %sends\n");
677 p(sctps_sends_with_eof, "\t%lu %sends with EOF flag set\n");
678 p(sctps_sends_with_abort, "\t%lu %sends with ABORT flag set\n");
679 p(sctps_protocol_drain_calls, "\t%lu time%s protocol drain called\n");
680 p(sctps_protocol_drains_done, "\t%lu time%s we did a protocol "
682 p(sctps_read_peeks, "\t%lu time%s recv was called with peek\n");
683 p(sctps_cached_chk, "\t%lu cached chunk%s used\n");
684 p(sctps_cached_strmoq, "\t%lu cached %stream oq's used\n");
685 p(sctps_left_abandon, "\t%lu unread me%ssage abandonded by close\n");
686 p(sctps_send_burst_avoid, "\t%lu send bur%st avoidance, already "
687 "max burst inflight to net\n");
688 p(sctps_send_cwnd_avoid, "\t%lu send cwnd full avoidance, already "
689 "max bur%st inflight to net\n");
690 p(sctps_fwdtsn_map_over, "\t%lu number of map array over-run%s via "