setfib man page on GhostBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
GhostBSD logo
[printable version]

SETFIB(2)		    BSD System Calls Manual		     SETFIB(2)

NAME
     setfib — set the default FIB (routing table) for the calling process.

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <sys/socket.h>

     int
     setfib(int fib);

DESCRIPTION
     The 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 overridden for a
     socket with the use of the SO_SETFIB socket option.

RETURN VALUES
     The 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.

ERRORS
     The setfib() system call will fail and no action will be taken and return
     EINVAL if the fib argument is greater than the current system maximum.

SEE ALSO
     setfib(1), setsockopt(2)

STANDARDS
     The setfib() system call is a FreeBSD extension however similar exten‐
     sions have been added to many other UNIX style kernels.

HISTORY
     The setfib() function appeared in FreeBSD 7.1.

BSD				August 8, 2008				   BSD
[top]

List of man pages available for GhostBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net