Skip to content

QuicListenerStart does not return an error when listening on IPv6 and IPv6 is disabled #3052

@rzikm

Description

@rzikm

Describe the bug

When attempting to listen on IPv6 address on platforms which have IPv6 disabled, MsQuicListenerStart still returns success, although it is not possible to create a connection to it.

Attempting to establish client-initiated IPv6 connection fails as expected (with 0x63 = EADDRNOTAVAIL) on Linux.

Affected OS

  • All
  • Windows Server 2022
  • Windows 11, version 22H2
  • Windows 11, version 21H2
  • Windows Insider Preview (specify affected build below)
  • Ubuntu
  • Debian
  • Other (specify below)

Additional OS information

Encountered on Linux, not sure how to disable IPv6 on windows to reproduce the same behavior.

MsQuic version

main

Steps taken to reproduce bug

  1. Disable IPv6 on the machine
  2. Create a QuicListener
  3. call ListenerStart with IPv6 loopback address

Expected behavior

ListenerStart returns 0x63 or other relevant error code.

Actual outcome

ListenerStart finishes successfully.

Additional details

I tested in the same environment that binding a socket to the tested address (IPv6 loopback) does lead to 0x63 being returned. I would expect QuicListener to behave the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Should be written

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions