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
F146867844: D54942.diff
Fri, Mar 6, 8:10 AM
F146867840: D54942.diff
Fri, Mar 6, 8:10 AM
Unknown Object (File)
Wed, Mar 4, 1:54 PM
Unknown Object (File)
Tue, Feb 24, 10:31 PM
Unknown Object (File)
Mon, Feb 23, 1:16 PM
Unknown Object (File)
Tue, Feb 17, 3:07 PM
Unknown Object (File)
Sun, Feb 15, 12:57 PM
Unknown Object (File)
Thu, Feb 5, 10:44 PM
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.