Date: Wed, 21 Jun 2023 05:24:52 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available Message-ID: <bug-272124-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272124 Bug ID: 272124 Summary: The socket option "SCTP_DELAYED_ACK_TIME" is not available Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: ph317093@fh-muenster.de CC: doc@FreeBSD.org The socket option "SCTP_DELAYED_ACK_TIME" is not available on FreeBSD-14.0-CURRENT-amd64-20230615, even though it is mentioned in the manual. Instead, you can use SCTP_DELAYED_SACK. I believe this is an error in the manual and needs to be replaced. Here's an example of the error: struct sctp_sack_info sackInfo; socklen_t sackInfo_len = (socklen_t) sizeof(sackInfo); memset(&sackInfo, 0, sackInfo_len); sackInfo.sack_assoc_id = sackAssocId; sackInfo.sack_delay = sackDelay; sackInfo.sack_freq = sackFreq; if (setsockopt(fd, IPPROTO_SCTP, SCTP_DELAYED_ACK_TIME, &sackInfo, sackInfo_len) == -1) { perror("SCTP_DELAYED_ACK_TIME"); exit(EXIT_FAILURE); } error: use of undeclared identifier 'SCTP_DELAYED_ACK_TIME' ^ Instead, the following approach works: if (setsockopt(fd, IPPROTO_SCTP, SCTP_DELAYED_SACK, &sackInfo, sackInfo_len) == -1) { perror("SCTP_DELAYED_SACK"); exit(EXIT_FAILURE); } -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272124-227>
