Page MenuHomeFreeBSD

sys/socket.h: Fix AF_MAX
ClosedPublic

Authored by des on Mon, Aug 3, 12:04 PM.

Details

Summary

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 fixing 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.

Diff Detail

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

Event Timeline

des requested review of this revision.Mon, Aug 3, 12:04 PM

This is directly in the line of fire of my GSoC student's MPLS work.

kevans added a subscriber: kevans.
In D58597#1344902, @bms wrote:

This is directly in the line of fire of my GSoC student's MPLS work.

This should be pretty easy to rebase around, at least.

This revision is now accepted and ready to land.Mon, Aug 3, 2:48 PM
In D58597#1344902, @bms wrote:

This is directly in the line of fire of my GSoC student's MPLS work.

This should be pretty easy to rebase around, at least.

Yeah, I don't doubt it, but I did get Redmond flashbacks.

This revision was automatically updated to reflect the committed changes.