When using an ipv6 address as the -from argument, you get the following error: Xserver: failed to bind to -from address: 2001:980:8d99:1:63::9 When stracing the code i see: socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 6 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 7 setsockopt(7, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0 bind(7, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "2001:980:8d88:1:63::9", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EAFNOSUPPORT (Address family not supported by protocol) socket "7" is opened with PF_INET, and bind is using AF_INET6 and fails. alan on irc #xorg-devel wrote: I think the problem is at http://cgit.freedesktop.org/xorg/xserver/tree/os/xdmcp.c#n992 where the bind is always done to xdmcpSocket instead of checking address type to use xdmcpSocket6 Good luck with fixing this bug! Kind regards, Ed
Created attachment 88923 [details] [review] adding support for ipv6 "from" address I wrote the attached patch and it seem to work. ( tested with X.Org X Server 1.14.3 )
Created attachment 88971 [details] [review] Improved version of the patch adds support for an ipv6 address as a "from" argument
Also reported as https://gitlab.freedesktop.org/xorg/xserver/issues/4
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/450.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.