getrtable man page on OpenBSD

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

GETRTABLE(2)		  OpenBSD Programmer's Manual		  GETRTABLE(2)

NAME
     getrtable, setrtable - get and set the default routing domain of the
     current process

SYNOPSIS
     #include <sys/types.h>
     #include <sys/socket.h>

     int
     getrtable(void);

     int
     setrtable(int rtableid);

DESCRIPTION
     getrtable() and setrtable() manipulate the routing table and routing
     domain associated with the current process.

     Only the superuser is allowed to change the process routing domain if it
     is already set to a non-zero value.

RETURN VALUES
     A 0 is returned if the call succeeds, -1 if it fails.

ERRORS
     The call succeeds unless:

     [EINVAL]	   The value of the rtableid argument is not a valid routing
		   table.

     [EPERM]	   The user is not the superuser and the routing domain of the
		   calling process is already set to a non-zero value.

SEE ALSO
     getsockopt(2), setsockopt(2), route(8)

HISTORY
     The getrtable() and setrtable() system calls appeared in OpenBSD 4.8.

OpenBSD 4.9			 July 3, 2010			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

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