Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xserver xserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 932
    • Issues 932
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 99
    • Merge requests 99
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • xserverxserver
  • Issues
  • #450

Closed
Open
Created Nov 08, 2013 by Bugzilla Migration User@bugzilla-migration

Using an ipv6 address with the -from option fails

Submitted by Ed

Assigned to Xorg Project Team

Link to original bug (#71407)

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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking