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
F163342460: D54942.id170681.diff
Wed, Jul 22, 7:50 AM
F163312096: D54942.id.diff
Tue, Jul 21, 11:54 PM
Unknown Object (File)
Sat, Jul 18, 10:07 AM
Unknown Object (File)
Wed, Jul 15, 7:04 AM
Unknown Object (File)
Wed, Jul 15, 7:04 AM
Unknown Object (File)
Fri, Jul 10, 7:52 PM
Unknown Object (File)
Wed, Jul 8, 7:54 AM
Unknown Object (File)
Mon, Jul 6, 3:05 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.