[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Jun 2023 05:24:52 UTC
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 on the CC list for the bug.