Lines Matching +full:max +full:- +full:burst +full:- +full:len
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 2001-2007, by Weongyo Jeong. All rights reserved.
111 switch (address->sa.sa_family) { in sctp_print_address()
115 Wflag ? 39 : 16, inetname(&address->sin.sin_addr)); in sctp_print_address()
121 Wflag ? 39 : 16, inet6name(&address->sin6.sin6_addr)); in sctp_print_address()
134 snprintf(cp, sizeof(line) - alen, in sctp_print_address()
135 "%.15s ", sp ? sp->s_name : "*"); in sctp_print_address()
137 snprintf(cp, sizeof(line) - alen, in sctp_print_address()
140 xo_emit("{d:target/%-*.*s} ", width, width, line); in sctp_print_address()
142 plen = strlen(cp) - 1; in sctp_print_address()
143 alen--; in sctp_print_address()
162 if (xladdr->last == 1) in sctp_skip_xinpcb_ifneed()
169 if (xstcb->last == 1) in sctp_skip_xinpcb_ifneed()
177 if (xladdr->last == 1) in sctp_skip_xinpcb_ifneed()
184 if (xraddr->last == 1) in sctp_skip_xinpcb_ifneed()
218 if (xladdr->last == 1) in sctp_process_tcb()
228 xl->xladdr = xladdr; in sctp_process_tcb()
239 if (xraddr->last == 1) in sctp_process_tcb()
249 xr->xraddr = xraddr; in sctp_process_tcb()
263 x_max = MAX(xl_total, xr_total); in sctp_process_tcb()
268 xo_emit("{P:/%-12s} ", " "); in sctp_process_tcb()
271 sctp_print_address("local", &(xl->xladdr->address), in sctp_process_tcb()
272 htons(xstcb->local_port), numeric_port); in sctp_process_tcb()
275 xo_emit("{P:/%-45s} ", " "); in sctp_process_tcb()
277 xo_emit("{P:/%-22s} ", " "); in sctp_process_tcb()
282 sctp_print_address("remote", &(xr->xraddr->address), in sctp_process_tcb()
283 htons(xstcb->remote_port), numeric_port); in sctp_process_tcb()
292 sctp_statesprint(xstcb->state); in sctp_process_tcb()
330 if (xinpcb->maxqlen > 0) in sctp_process_inpcb()
342 xo_emit("{T:/%-6.6s} {T:/%-5.5s} {T:/%-8.8s} " in sctp_process_inpcb()
343 "{T:/%-22.22s}\n", in sctp_process_inpcb()
347 xo_emit("{T:/%-6.6s} {T:/%-5.5s} {T:/%-45.45s} " in sctp_process_inpcb()
348 "{T:/%-45.45s} {T:/%s}\n", in sctp_process_inpcb()
353 xo_emit("{T:/%-6.6s} {T:/%-5.5s} {T:/%-22.22s} " in sctp_process_inpcb()
354 "{T:/%-22.22s} {T:/%s}\n", in sctp_process_inpcb()
367 if (xinpcb->flags & SCTP_PCB_FLAGS_BOUND_V6) { in sctp_process_inpcb()
374 if (xinpcb->flags & SCTP_PCB_FLAGS_TCPTYPE) in sctp_process_inpcb()
376 else if (xinpcb->flags & SCTP_PCB_FLAGS_UDPTYPE) in sctp_process_inpcb()
385 xinpcb->qlen, xinpcb->maxqlen); in sctp_process_inpcb()
386 xo_emit("{:protocol/%-6.6s/%s} {:type/%-5.5s/%s} ", in sctp_process_inpcb()
388 xo_emit("{d:queues/%-8.8s}{e:queue-len/%hu}" in sctp_process_inpcb()
389 "{e:max-queue-len/%hu} ", in sctp_process_inpcb()
390 buf1, xinpcb->qlen, xinpcb->maxqlen); in sctp_process_inpcb()
396 xo_open_list("local-address"); in sctp_process_inpcb()
401 if (xladdr->last) { in sctp_process_inpcb()
403 xo_open_instance("local-address"); in sctp_process_inpcb()
405 xo_emit("{:protocol/%-6.6s/%s} " in sctp_process_inpcb()
406 "{:type/%-5.5s/%s} ", pname, tname); in sctp_process_inpcb()
408 xo_emit("{P:/%-91.91s/%s} " in sctp_process_inpcb()
411 xo_emit("{P:/%-45.45s/%s} " in sctp_process_inpcb()
414 xo_close_instance("local-address"); in sctp_process_inpcb()
425 xo_open_instance("local-address"); in sctp_process_inpcb()
429 xo_emit("{:protocol/%-6.6s/%s} " in sctp_process_inpcb()
430 "{:type/%-5.5s/%s} ", pname, tname); in sctp_process_inpcb()
434 xo_emit(Lflag ? "{P:/%-21.21s} " : "{P:/%-12.12s} ", in sctp_process_inpcb()
437 sctp_print_address("local", &(xladdr->address), in sctp_process_inpcb()
438 htons(xinpcb->local_port), numeric_port); in sctp_process_inpcb()
442 xo_emit("{P:/%-45.45s} " in sctp_process_inpcb()
445 xo_emit("{P:/%-45.45s} " in sctp_process_inpcb()
450 xo_emit("{P:/%-22.22s} " in sctp_process_inpcb()
453 xo_emit("{P:/%-22.22s} " in sctp_process_inpcb()
459 xo_close_instance("local-address"); in sctp_process_inpcb()
464 if (aflag && (xladdr_total == 0) && xstcb->last && !process_closed) { in sctp_process_inpcb()
469 while (xstcb->last == 0 && *offset < buflen) { in sctp_process_inpcb()
470 xo_emit("{:protocol/%-6.6s/%s} {:type/%-5.5s/%s} ", in sctp_process_inpcb()
478 xo_close_list("local-address"); in sctp_process_inpcb()
492 size_t len = 0; in sctp_protopr() local
498 if (sysctlbyname(mibvar, 0, &len, 0, 0) < 0) { in sctp_protopr()
503 if ((buf = malloc(len)) == NULL) { in sctp_protopr()
504 xo_warnx("malloc %lu bytes", (u_long)len); in sctp_protopr()
507 if (sysctlbyname(mibvar, buf, &len, 0, 0) < 0) { in sctp_protopr()
515 while (xinpcb->last == 0 && offset < len) { in sctp_protopr()
516 sctp_process_inpcb(xinpcb, buf, (const size_t)len, in sctp_protopr()
593 p(sctps_recvpackets, "\t{:received-packets/%ju} " in sctp_stats()
595 p(sctps_recvdatagrams, "\t\t{:received-datagrams/%ju} " in sctp_stats()
597 p(sctps_recvpktwithdata, "\t\t{:received-with-data/%ju} " in sctp_stats()
599 p(sctps_recvsacks, "\t\t{:received-sack-chunks/%ju} " in sctp_stats()
601 p(sctps_recvdata, "\t\t{:received-data-chunks/%ju} " in sctp_stats()
603 p(sctps_recvdupdata, "\t\t{:received-duplicate-data-chunks/%ju} " in sctp_stats()
605 p(sctps_recvheartbeat, "\t\t{:received-hb-chunks/%ju} " in sctp_stats()
607 p(sctps_recvheartbeatack, "\t\t{:received-hb-ack-chunks/%ju} " in sctp_stats()
608 "{N:/HB-ACK chunk%s}\n"); in sctp_stats()
609 p(sctps_recvecne, "\t\t{:received-ecne-chunks/%ju} " in sctp_stats()
611 p(sctps_recvauth, "\t\t{:received-auth-chunks/%ju} " in sctp_stats()
613 p(sctps_recvauthmissing, "\t\t{:dropped-missing-auth/%ju} " in sctp_stats()
615 p(sctps_recvivalhmacid, "\t\t{:dropped-invalid-hmac/%ju} " in sctp_stats()
617 p(sctps_recvivalkeyid, "\t\t{:dropped-invalid-secret/%ju} " in sctp_stats()
619 p1a(sctps_recvauthfailed, "\t\t{:dropped-auth-failed/%ju} " in sctp_stats()
621 p1a(sctps_recvexpress, "\t\t{:received-fast-path/%ju} " in sctp_stats()
623 p1a(sctps_recvexpressm, "\t\t{:receives-fast-path-multipart/%ju} " in sctp_stats()
624 "{N:/fast path multi-part data}\n"); in sctp_stats()
625 p1a(sctps_recvswcrc, "\t\t{:performed-receive-crc32c-computation/%ju} " in sctp_stats()
627 p1a(sctps_recvhwcrc, "\t\t{:performed-receive-crc32c-offloading/%ju} " in sctp_stats()
633 p(sctps_sendpackets, "\t{:sent-packets/%ju} " in sctp_stats()
635 p(sctps_sendsacks, "\t\t{:sent-sacks/%ju} " in sctp_stats()
637 p(sctps_senddata, "\t\t{:sent-data-chunks/%ju} " in sctp_stats()
639 p(sctps_sendretransdata, "\t\t{:sent-retransmitted-data-chunks/%ju} " in sctp_stats()
642 "{:sent-fast-retransmitted-data-chunks/%ju} " in sctp_stats()
645 "{:sent-fast-retransmitted-data-chunk-multiple-times/%ju} " in sctp_stats()
647 p(sctps_sendheartbeat, "\t\t{:sent-hb-chunks/%ju} " in sctp_stats()
649 p(sctps_sendecne, "\t\t{:sent-ecne-chunks/%ju} " in sctp_stats()
651 p(sctps_sendauth, "\t\t{:sent-auth-chunks/%ju} " in sctp_stats()
653 p1a(sctps_senderrors, "\t\t{:send-errors/%ju} " in sctp_stats()
655 p1a(sctps_sendswcrc, "\t\t{:performed-receive-crc32c-computation/%ju} " in sctp_stats()
657 p1a(sctps_sendhwcrc, "\t\t{:performed-transmit-crc32c-offloading/%ju} " in sctp_stats()
664 xo_open_container("drop-statistics"); in sctp_stats()
665 p1a(sctps_pdrpfmbox, "\t\t{:middle-box/%ju} " in sctp_stats()
667 p1a(sctps_pdrpfehos, "\t\t{:end-host/%ju} " in sctp_stats()
669 p1a(sctps_pdrpmbda, "\t\t{:with-data/%ju} " in sctp_stats()
671 p1a(sctps_pdrpmbct, "\t\t{:non-data/%ju} " in sctp_stats()
672 "{N:/non-data, non-endhost}\n"); in sctp_stats()
673 p1a(sctps_pdrpbwrpt, "\t\t{:non-endhost/%ju} " in sctp_stats()
674 "{N:/non-endhost, bandwidth rep only}\n"); in sctp_stats()
675 p1a(sctps_pdrpcrupt, "\t\t{:short-header/%ju} " in sctp_stats()
677 p1a(sctps_pdrpnedat, "\t\t{:short-data/%ju} " in sctp_stats()
679 p1a(sctps_pdrppdbrk, "\t\t{:chunk-break/%ju} " in sctp_stats()
681 p1a(sctps_pdrptsnnf, "\t\t{:tsn-not-found/%ju} " in sctp_stats()
683 p1a(sctps_pdrpdnfnd, "\t\t{:reverse-tsn/%ju} " in sctp_stats()
685 p1a(sctps_pdrpdiwnp, "\t\t{:confirmed-zero-window/%ju} " in sctp_stats()
686 "{N:/e-host confirms zero-rwnd}\n"); in sctp_stats()
687 p1a(sctps_pdrpdizrw, "\t\t{:middle-box-no-space/%ju} " in sctp_stats()
689 p1a(sctps_pdrpbadd, "\t\t{:bad-data/%ju} " in sctp_stats()
691 p(sctps_pdrpmark, "\t\t{:tsn-marked-fast-retransmission/%ju} " in sctp_stats()
693 xo_close_container("drop-statistics"); in sctp_stats()
702 p(sctps_timodata, "\t\t{:t3-data/%ju} " in sctp_stats()
704 p(sctps_timowindowprobe, "\t\t{:window-probe/%ju} " in sctp_stats()
706 p(sctps_timoinit, "\t\t{:init-timer/%ju} " in sctp_stats()
708 p(sctps_timosack, "\t\t{:sack-timer/%ju} " in sctp_stats()
710 p(sctps_timoshutdown, "\t\t{:shutdown-timer/%ju} " in sctp_stats()
712 p(sctps_timoheartbeat, "\t\t{:heartbeat-timer/%ju} " in sctp_stats()
714 p1a(sctps_timocookie, "\t\t{:cookie-timer/%ju} " in sctp_stats()
716 p1a(sctps_timosecret, "\t\t{:endpoint-changed-cookie/%ju} " in sctp_stats()
719 p(sctps_timopathmtu, "\t\t{:pmtu-timer/%ju} " in sctp_stats()
721 p(sctps_timoshutdownack, "\t\t{:shutdown-ack-timer/%ju} " in sctp_stats()
723 p(sctps_timoshutdownguard, "\t\t{:shutdown-guard-timer/%ju} " in sctp_stats()
725 p(sctps_timostrmrst, "\t\t{:stream-reset-timer/%ju} " in sctp_stats()
727 p(sctps_timoearlyfr, "\t\t{:early-fast-retransmission-timer/%ju} " in sctp_stats()
729 p1a(sctps_timoasconf, "\t\t{:asconf-timer/%ju} " in sctp_stats()
731 p1a(sctps_timoautoclose, "\t\t{:auto-close-timer/%ju} " in sctp_stats()
733 p(sctps_timoassockill, "\t\t{:asoc-free-timer/%ju} " in sctp_stats()
735 p(sctps_timoinpkill, "\t\t{:input-free-timer/%ju} " in sctp_stats()
759 p1a(sctps_hdrops, "\t{:dropped-too-short/%ju} " in sctp_stats()
761 p1a(sctps_badsum, "\t{:dropped-bad-checksum/%ju} " in sctp_stats()
763 p1a(sctps_noport, "\t{:dropped-no-endpoint/%ju} " in sctp_stats()
765 p1a(sctps_badvtag, "\t{:dropped-bad-v-tag/%ju} " in sctp_stats()
766 "{N:/bad v-tag}\n"); in sctp_stats()
767 p1a(sctps_badsid, "\t{:dropped-bad-sid/%ju} " in sctp_stats()
769 p1a(sctps_nomem, "\t{:dropped-no-memory/%ju} " in sctp_stats()
771 p1a(sctps_fastretransinrtt, "\t{:multiple-fast-retransmits-in-rtt/%ju} " in sctp_stats()
776 p1a(sctps_naglesent, "\t{:rfc813-sent/%ju} " in sctp_stats()
778 p1a(sctps_naglequeued, "\t{:rfc813-queued/%ju} " in sctp_stats()
780 p1a(sctps_maxburstqueued, "\t{:max-burst-queued/%ju} " in sctp_stats()
781 "{N:/times max burst prohibited sending}\n"); in sctp_stats()
782 p1a(sctps_ifnomemqueued, "\t{:no-memory-in-interface/%ju} " in sctp_stats()
784 p(sctps_windowprobed, "\t{:sent-window-probes/%ju} " in sctp_stats()
786 p(sctps_lowlevelerr, "\t{:low-level-err/%ju} " in sctp_stats()
788 p(sctps_lowlevelerrusr, "\t{:low-level-user-error/%ju} " in sctp_stats()
790 p(sctps_datadropchklmt, "\t{:dropped-chunk-limit/%ju} " in sctp_stats()
792 p(sctps_datadroprwnd, "\t{:dropped-rwnd-limit/%ju} " in sctp_stats()
794 p(sctps_ecnereducedcwnd, "\t{:ecn-reduced-cwnd/%ju} " in sctp_stats()
796 p1a(sctps_vtagexpress, "\t{:v-tag-express-lookup/%ju} " in sctp_stats()
798 p1a(sctps_vtagbogus, "\t{:v-tag-collision/%ju} " in sctp_stats()
800 p(sctps_primary_randry, "\t{:sender-ran-dry/%ju} " in sctp_stats()
802 p1a(sctps_cmt_randry, "\t{:cmt-ran-dry/%ju} " in sctp_stats()
804 p(sctps_slowpath_sack, "\t{:slow-path-sack/%ju} " in sctp_stats()
806 p(sctps_wu_sacks_sent, "\t{:sent-window-update-only-sack/%ju} " in sctp_stats()
808 p(sctps_sends_with_flags, "\t{:sent-with-sinfo/%ju} " in sctp_stats()
810 p(sctps_sends_with_unord, "\t{:sent-with-unordered/%ju} " in sctp_stats()
812 p(sctps_sends_with_eof, "\t{:sent-with-eof/%ju} " in sctp_stats()
814 p(sctps_sends_with_abort, "\t{:sent-with-abort/%ju} " in sctp_stats()
816 p(sctps_protocol_drain_calls, "\t{:protocol-drain-called/%ju} " in sctp_stats()
818 p(sctps_protocol_drains_done, "\t{:protocol-drain/%ju} " in sctp_stats()
820 p(sctps_read_peeks, "\t{:read-with-peek/%ju} " in sctp_stats()
822 p(sctps_cached_chk, "\t{:cached-chunks/%ju} " in sctp_stats()
824 p1a(sctps_cached_strmoq, "\t{:cached-output-queue-used/%ju} " in sctp_stats()
826 p(sctps_left_abandon, "\t{:messages-abandoned/%ju} " in sctp_stats()
828 p1a(sctps_send_burst_avoid, "\t{:send-burst-avoidance/%ju} " in sctp_stats()
829 "{N:/send burst avoidance, already max burst inflight to net}\n"); in sctp_stats()
830 p1a(sctps_send_cwnd_avoid, "\t{:send-cwnd-avoidance/%ju} " in sctp_stats()
831 "{N:/send cwnd full avoidance, already max burst inflight " in sctp_stats()
833 p(sctps_fwdtsn_map_over, "\t{:tsn-map-overruns/%ju} " in sctp_stats()
834 "{N:/number of map array over-run%s via fwd-tsn's}\n"); in sctp_stats()