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: b...@freebsd.org
          Reporter: ph317...@fh-muenster.de
                CC: d...@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.

Reply via email to