summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2008-05-09 23:00:21 +0000
committerJulian Elischer <julian@FreeBSD.org>2008-05-09 23:00:21 +0000
commit65cb6b683473078ea74209aae5a88eb9c410def9 (patch)
tree6aad8f39e12329937e23cf151adfb9286b9e3414
parentda47740afb2290a88b7b078e6df990a5cd0461a6 (diff)
Notes
-rw-r--r--lib/libc/sys/Symbol.map1
-rw-r--r--lib/libc/sys/getsockopt.27
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/sys/Symbol.map b/lib/libc/sys/Symbol.map
index 137f4379ee99..9ef93d37247c 100644
--- a/lib/libc/sys/Symbol.map
+++ b/lib/libc/sys/Symbol.map
@@ -348,6 +348,7 @@ FBSD_1.1 {
openat;
readlinkat;
renameat;
+ setfib;
symlinkat;
unlinkat;
};
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2
index 3ea34c9b87d6..212843253882 100644
--- a/lib/libc/sys/getsockopt.2
+++ b/lib/libc/sys/getsockopt.2
@@ -168,6 +168,7 @@ for the socket
.It Dv SO_ACCEPTCONN Ta "get listening status of the socket (get only)"
.It Dv SO_TYPE Ta "get the type of the socket (get only)"
.It Dv SO_ERROR Ta "get and clear error on the socket (get only)"
+.It Dv SO_SETFIB Ta "set the associated FIB (routing table) for the socket (set only)"
.El
.Pp
.Dv SO_DEBUG
@@ -316,6 +317,12 @@ or with the error
.Er EWOULDBLOCK
if no data were received.
.Pp
+.Dv SO_SETFIB
+can be used to over-ride the default FIB (routing table) for the given socket.
+The value must be from 0 to one less than the number returned from
+the sysctl
+.Em net.fibs .
+.Pp
.Dv SO_ACCEPTFILTER
places an
.Xr accept_filter 9