diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-05-02 16:45:30 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-05-02 16:45:30 +0000 |
commit | f4cb631c74cdc269ca00c4473c8dd5840eaaeea7 (patch) | |
tree | f9fc73304d46359c89827000ca1ea9b6d621c54b /lib/libc/sys | |
parent | 16f4a4e2fc0289ea00379fbe31df1aae90903841 (diff) |
document SO_RTABLE; with suggestions and ok jmc, claudio
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/getsockopt.2 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index a2ec874497e..ab671e8906b 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getsockopt.2,v 1.30 2011/04/22 11:59:26 bluhm Exp $ +.\" $OpenBSD: getsockopt.2,v 1.31 2011/05/02 16:45:29 mikeb Exp $ .\" $NetBSD: getsockopt.2,v 1.7 1995/02/27 12:33:29 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getsockopt.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: April 22 2011 $ +.Dd $Mdocdate: May 2 2011 $ .Dt GETSOCKOPT 2 .Os .Sh NAME @@ -150,6 +150,7 @@ and set with .It Dv SO_RCVTIMEO Ta "set timeout value for input" .It Dv SO_TIMESTAMP Ta "enables reception of a timestamp with datagrams" .It Dv SO_PEERCRED Ta "get the credentials from other side of connection" +.It Dv SO_RTABLE Ta "set the routing domain" .It Dv SO_SPLICE Ta "splice two sockets together or get data length" .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)" @@ -337,6 +338,14 @@ or .Xr connect 2 were called. .Pp +The +.Dv SO_RTABLE +option allows to get or set a routing domain. +If a protocol family of the socket doesn't support routing domains, +the +.Er ENOPROTOOPT +error is returned. +.Pp .Dv SO_SPLICE can splice together two connected TCP sockets for zero-copy data transfers. |