From nobody Wed Jun 21 05:24:52 2023 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QmBlS64Gcz4fwnW for ; Wed, 21 Jun 2023 05:24:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QmBlS3vfFz3MXV for ; Wed, 21 Jun 2023 05:24:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687325092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c7zYqxjZZnpgYtokpBwpqyHEWpINbcRtkJPat5Ab8d8=; b=HdeDY39yB/TMa7pdebdkFkVpczWMhAOYESow8FZSy7wzVxjEhjynRpCOCp/S1vd0b33boP yz2J7JM2Rs35r29ZbM+m6stkEK+U2lmGWzC9i+hD/6NbTf3/Xi7U9SYNXZwxQN4aDv8pJe xzTwm2lBRKRTnBk3Hn1mj7Qpvl/h0YY3qbWx/vMZNDJNGdkUP32X2vsaonzPhjRUTaWcY4 SgED5xoeOkJu35eg3oEGmmJ2oVPVF0cgx01aK5oTdbIqqJRit04gXd72NcyJuRxu4LrW3R HYt8QeyxgmGrlI/Bc6cX8CDpXLldWeYHfwAzrlnOd/3epZmWJFH13BeXNNf5ZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687325092; a=rsa-sha256; cv=none; b=iOSrRnMfwBlObXyah/vxsdUH+NmkTCyr5UqwAkOygAhONPZaxNlioKFmbqB8sK6XVGyXrn Ed0Tvown0UU8JCdxp1pFmt8mUk/LyfA/+881m1BFsGlzuG6og0zw0KyISsMiKjFnizCZmQ 4pwJzYD2o4z0tQFQZ2zj+ZkvJN63BAkNSbm2Z9iiRDfuZaG2RKSPZmRnoK2/ts3YF3KrNW erJ2X6G820D0DmRQ28u4F1sYMiMWjJL3Pl3y5auqBrnFfk89Eorq5Se1wcfGJs7M93TVLj PQOddH0elRStIdeLW7aX+K4QxIYOOofG83GZ086HWUjLXsKvKr3hrQE6qg1CQQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QmBlS31YdzV4J for ; Wed, 21 Jun 2023 05:24:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 35L5Oq0P069380 for ; Wed, 21 Jun 2023 05:24:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35L5Oqn2069379 for doc@FreeBSD.org; Wed, 21 Jun 2023 05:24:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 272124] The socket option "SCTP_DELAYED_ACK_TIME" is not available Date: Wed, 21 Jun 2023 05:24:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ph317093@fh-muenster.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N 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.=