Query: setfib
OS: debian
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SETFIB(2) BSD System Calls Manual SETFIB(2)NAMEsetfib -- set the default FIB (routing table) for the calling process.LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/socket.h> int setfib(int fib);DESCRIPTIONThe setfib() system call sets the associated fib for all sockets opened subsequent to the call, to be that of the argument fib. The fib argument may be between 0 and the current system maximum which may be retrieved by the net.fibs sysctl. 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 over- ridden for a socket with the use of the SO_SETFIB socket option.RETURN VALUESThe setfib() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.ERRORSThe setfib() system call will fail and no action will be taken and return EINVAL if the fib argument is greater than the current system maxi- mum.SEE ALSOsetfib(1), setsockopt(2)STANDARDSThe setfib() system call is a FreeBSD extension however similar extensions have been added to many other UNIX style kernels.HISTORYThe setfib() function appeared in FreeBSD 7.1.BSDAugust 8, 2008 BSD
Related Man Pages |
---|
getsockname(2) - mojave |
route(8) - freebsd |
setfib(2) - debian |
getsid(2) - freebsd |
getsockname(2) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Problem with static compiling - GCC |
question on shell script |