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).
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential D48834
socket: Add an option to retrieve a socket's FIB number markj on Tue, Feb 4, 5:11 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions If we move the fib to pcb would we be able to preserve this API? Of course it would start fail on sockets where FIB doesn't make any sense. But would we be able to preserve for meaningful sockets? Comment Actions Yes, the handler could be moved to the protocol layer, like I did for setsockopt(SO_SETFIB) in D48666. |