Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Sep 2024 07:06:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281409] audio/pulseaudio: 16.1_4 IP_TOS failed when socket is PF_INET6
Message-ID:  <bug-281409-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 281409
           Summary: audio/pulseaudio: 16.1_4 IP_TOS failed when socket is
                    PF_INET6
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop@FreeBSD.org
          Reporter: tatsuki_makino@hotmail.com
          Assignee: desktop@FreeBSD.org
             Flags: maintainer-feedback?(desktop@FreeBSD.org)

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 <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

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;
}

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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