Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2023 05:24:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available
Message-ID:  <bug-272124-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272124

            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 man=
ual.
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 =3D (socklen_t) sizeof(sackInfo);

memset(&sackInfo, 0, sackInfo_len);
sackInfo.sack_assoc_id =3D sackAssocId;
sackInfo.sack_delay =3D sackDelay;
sackInfo.sack_freq =3D sackFreq;

if (setsockopt(fd,
           IPPROTO_SCTP,
           SCTP_DELAYED_ACK_TIME,
           &sackInfo,
           sackInfo_len) =3D=3D -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) =3D=3D -1) {

    perror("SCTP_DELAYED_SACK");
    exit(EXIT_FAILURE);
}

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272124-9>