]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Switch from setfib(2) moving the process to a different FIB to setsockopt(2)
authorBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 14 Feb 2012 11:37:04 +0000 (11:37 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 14 Feb 2012 11:37:04 +0000 (11:37 +0000)
commitaaf04b7cb637af9400e6b9ae1bd531ef828a7c82
tree467c90046a772dd028236d7492688187d2e6d10f
parent9836132cd1049b4c261fc131f720b1d17977ffa2
Switch from setfib(2) moving the process to a different FIB to setsockopt(2)
with SO_SETFIB to only tag the socket with the right FIB.

That way either setfib(1) or nc -V can be used depending on what wants to be
achieved.  This also allows nc to be used for simple regression testing of
either feature.

Sponsored by: Cisco Systems, Inc.
contrib/netcat/netcat.c