Page MenuHomeFreeBSD

netinet6: Remove support for connecting to IN6ADDR_ANY
AcceptedPublic

Authored by emaste on Thu, Jan 29, 2:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 2, 5:46 PM
Unknown Object (File)
Sat, Jan 31, 6:11 AM
Unknown Object (File)
Fri, Jan 30, 10:51 PM
Unknown Object (File)
Fri, Jan 30, 5:09 AM
Unknown Object (File)
Thu, Jan 29, 7:32 PM
Unknown Object (File)
Thu, Jan 29, 5:31 PM
Unknown Object (File)
Thu, Jan 29, 5:28 PM
Unknown Object (File)
Thu, Jan 29, 4:05 PM
Subscribers

Details

Reviewers
bz
glebius
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

Lint
Lint Skipped
Unit
Tests Skipped

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.Thu, Jan 29, 2:40 PM
glebius added inline comments.
sys/netinet6/in6_pcb.c
391

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