Page MenuHomeFreeBSD

netinet6: Remove support for connecting to IN6ADDR_ANY
ClosedPublic

Authored by emaste on Jan 29 2026, 2:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 16, 1:45 PM
Unknown Object (File)
Fri, Sep 11, 10:51 PM
Unknown Object (File)
Fri, Sep 11, 7:54 PM
Unknown Object (File)
Fri, Sep 11, 5:28 PM
Unknown Object (File)
Aug 28 2026, 1:04 PM
Unknown Object (File)
Aug 21 2026, 9:31 AM
Unknown Object (File)
Aug 20 2026, 5:19 AM
Unknown Object (File)
Aug 18 2026, 8:36 AM
Subscribers

Details

Summary

RFC4291 section 2.5.2:

The unspecified address must not be used as the destination address
of IPv6 packets or in IPv6 Routing headers.  An IPv6 packet with a
source address of unspecified must never be forwarded by an IPv6
router.

We disallowed connections to IN6ADDR_ANY by default, as of commit 627e126dbb07b167b028380ef61bb45f10493938. As this is actually disallowed by the RFC, just remove support.

Reported by: bz (in D54306)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Seems fine to me. Do we have a test case for this (which may need to be adjusted)?

This revision is now accepted and ready to land.Jan 29 2026, 2:40 PM
glebius added inline comments.
sys/netinet6/in6_pcb.c
391–392

Let's add comment /* RFC4291 section 2.5.2 */ right above this line.