Page MenuHomeFreeBSD

Add support for SO_DOMAIN in getsockopt()

Authored by tuexen on Aug 18 2018, 3:23 PM.



Linux and Solaris support the SOL_SOCKET level socket option SO_DOMAIN in getsockopt() to get the domain of a socket. This patch add support for it to FreeBSD, which is handy in testing.

Test Plan

Use a packetdrill script to create a socket and verify that it has the domain expected.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

tuexen created this revision.Aug 18 2018, 3:23 PM
bcr accepted this revision.Aug 18 2018, 5:40 PM
bcr added a subscriber: bcr.

OK from manpages.

This revision is now accepted and ready to land.Aug 18 2018, 5:40 PM
rrs accepted this revision.Aug 21 2018, 1:23 PM
This revision was automatically updated to reflect the committed changes.