Using an ipv6 address with the -from option fails
Submitted by Ed
Assigned to Xorg Project Team
Description
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