HomeFreeBSD

socket: Add an option to retrieve a socket's FIB number

Description

socket: Add an option to retrieve a socket's FIB number

The SO_SETFIB option can be used to set a socket's FIB number, but there
is no way to retrieve it. Rename SO_SETFIB to SO_FIB and implement a
handler for it for getsockopt(2).

Reviewed by: glebius
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D48834

(cherry picked from commit ee951eb59f2136a604e3fbb12abf8d8344da0c99)

Details

Provenance
markjAuthored on Feb 6 2025, 2:17 PM
Reviewer
glebius
Differential Revision
D48834: socket: Add an option to retrieve a socket's FIB number
Parents
rGce80cdeb1370: rawip: Add a bind_all_fibs sysctl
Branches
Unknown
Tags
Unknown