HomeFreeBSD

sys/socket.h: Fix AF_MAX

Description

sys/socket.h: Fix AF_MAX

AF_MAX was always intended to be one more than the greatest allocated
value. Jeff broke this in 2013. Unfortunately, a bunch of people then
decided to adapt to the mistake instead of correcting it.

Fixes: 863c7e45628d (" - Reserve a special AF for SDP. The one we were incorrectly using before was taken by another AF.")
MFC after: 3 days
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: kevans, glebius
Differential Revision: https://reviews.freebsd.org/D58597

Details

Provenance
desAuthored on Aug 4 2026, 9:55 AM
Reviewer
kevans
Differential Revision
D58597: sys/socket.h: Fix AF_MAX
Parents
rG495826f69d96: stand: add ARCH and MSZ into DHCP requests
Branches
Unknown
Tags
Unknown