From nobody Tue Sep 10 07:06:27 2024 X-Original-To: desktop@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 4X2vrM4yMLz5Tp1H for ; Tue, 10 Sep 2024 07:06:27 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X2vrM2HX3z48tq for ; Tue, 10 Sep 2024 07:06:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725951987; a=rsa-sha256; cv=none; b=JeWFnQpGmz8tFLS2ambK1qR3LARL5uDiRaUvs4rniTlWQGS1MHh/5mixo1zyUbNqRmih3k gDoW10cMdba+yQ8Uez4LilFy5mmT/5XZNiNRQxJK6gkfi7ALyAMQR/ycHvk1h8Xb9ZpSd3 12dsjSg6hFOhnAMkhrQi7bVemXDut2h5gx6D9FqiCymCGO2X0xdPMUA+t60FeZUMYFc6iA n3YGj/lH2szJs/l6x0yP85Xw8W+FFwDljuUJKPV5Yr4KgX+b5Snql3fmdLY/tAB1E0+I8I CCY7jSKUuSJGJ8B3G0KgiCyoccBbR9aCjOna2bvGfWQWMev5ItcbFZONBVpmBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725951987; 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: in-reply-to:in-reply-to:references:references; bh=NADdQMNrjfbmtCiLTMpH4+bLPIf6gDdjKrIjULPYqCo=; b=V2ClLu58VC6q4PcpMPCUGtp3MrYWqseMix9MQYNJfkEG0+3Go0VmVOgJD4/LNfrSSe4uJW BJqRMyL/mjjDJWIPK4o8O9D9VnBwb1hlj7xZfncn1+IK99kb5SbCbfXFvo8LMcTs/cgQ1j z6Qdf/fnBDVUDz1BBtZafpwdYAI6ZCmbZAaODCjGVgmqSaOzrGdeVCGoDTuqZNlwAJumYy rET2hcjRzsR1bcjK9Z4KekaBcKi1i6KYKVAP8BZbTFBBhUXk9RY2US89Zm8YKJe4R3LPpO NeiNrnWDdo3POoqp+qoRxZk5C0uHCxQUvGnQr696+2AdVd/F90/AWRxaiBsdSg== 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 4X2vrM1vFWzdD2 for ; Tue, 10 Sep 2024 07:06:27 +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 48A76Rrm027767 for ; Tue, 10 Sep 2024 07:06:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48A76Rq1027766 for desktop@FreeBSD.org; Tue, 10 Sep 2024 07:06:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: maintainer-feedback requested: [Bug 281409] audio/pulseaudio: 16.1_4 IP_TOS failed when socket is PF_INET6 Date: Tue, 10 Sep 2024 07:06:27 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@FreeBSD.org MIME-Version: 1.0 Bugzilla Automation has asked freebsd-desktop (Team) for maintainer-feedback: Bug 281409: audio/pulseaudio: 16.1_4 IP_TOS failed when socket is PF_INET6 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281409 --- Description --- pulseaudio-16.1_4 outputs a log similar to the following ( 0.212| 0.000) [tunnel-sink][../src/pulsecore/socket-util.c:172 pa_make_tcp_socket_low_delay()] IP_TOS failed: Invalid argument This seems to occur when the socket is for IPv6. I don't know if this is something that happens only with FreeBSD, or if it = is something that upstream should take care of for all operating systems. pulseaudio-17.0 still has the same code. The following is a program in which only the relevant part is extracted and= the difference between PF_INET and PF_INET6 is introduced. #include #include #include #include #include #include #include #include int main() { int i, fd; int tos; #if 1 fd =3D socket(PF_INET6, SOCK_STREAM, 0); #else fd =3D socket(PF_INET, SOCK_STREAM, 0); #endif tos =3D IPTOS_LOWDELAY; i =3D setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *)&tos, sizeof tos); if (i =3D=3D -1) { printf("IP_TOS failed: %s\n", strerror(errno)); } close(fd); return 0; }