diff options
author | bjk <bjk@FreeBSD.org> | 2012-03-19 04:46:11 +0000 |
---|---|---|
committer | bjk <bjk@FreeBSD.org> | 2012-03-19 04:46:11 +0000 |
commit | 9c8c00d33bb97b7d88c576be135e54987de2607b (patch) | |
tree | bcd3731c76a5959753ba83ad999b5a5bdaa02a62 /lib/libc | |
parent | fa590f133ddbac41a10c9adabc532b4404da815d (diff) | |
download | FreeBSD-src-9c8c00d33bb97b7d88c576be135e54987de2607b.zip FreeBSD-src-9c8c00d33bb97b7d88c576be135e54987de2607b.tar.gz |
Expound a bit more about the system maximum number of FIBs,
how it may be set, and current limitations on the value.
Approved by: hrs (mentor)
PR: docs/157453
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/setfib.2 | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/libc/sys/setfib.2 b/lib/libc/sys/setfib.2 index a65a064..f92c3cf 100644 --- a/lib/libc/sys/setfib.2 +++ b/lib/libc/sys/setfib.2 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 8, 2008 +.Dd March 19, 2012 .Dt SETFIB 2 .Os .Sh NAME @@ -45,10 +45,28 @@ subsequent to the call, to be that of the argument The .Fa fib argument -may be between 0 and the current system maximum which +must be greater than or equal to 0 +and less than the current system maximum which may be retrieved by the .Va net.fibs sysctl. +The system maximum is set in the kernel configuration file with +.Pp +.Dl options ROUTETABLES= Ns Em N +.Pp +or in +.Pa /boot/loader.conf +with +.Pp +.Dl net.fibs= Ns Qq Em N +.Pp +where +.Em N +is an integer. +However, this maximum is capped at 16 due to the implementation storing +the fib number in a 4-bit field in +.Xr mbuf 9 +flags. The default fib of the process will be applied to all protocol families that support multiple fibs, and ignored by those that do not. The default fib for a process may be overridden for a socket with the use |