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 931
    • Issues 931
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 98
    • Merge requests 98
  • 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
  • #4

Closed
Open
Created Oct 18, 2018 by Andreas Fett@afettContributor

XDMCP: "-from" option broken for IPv6

In os/xdmcp.c the funktion static void get_xdmcp_sock(void) uses xdmcpSocket6 = socket(AF_INET6, SOCK_DGRAM, 0) for IPv6 and xdmcpSocket = socket(AF_INET, SOCK_DGRAM, 0) for IPv4. When using the "-from" option with an Ipv6 address - the manpage requires only, that it can be resolved with gethostbyname(3) - a bind(2) is attempted using xdmcpSocket instead of xdmcpSocket6 which must fail.

I suggest either adding a "-from6" option or selecting the appropriate socket filedescriptor based on the address family of the argument to "-from".

If you can tell me which one you'd prefer I'll prepare a patch.

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