summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-04-07 10:04:18 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-04-07 10:04:18 +0000
commit4a9f894d979064160d56d8a9e8435ecf67bb1cd5 (patch)
treeece6e37d7e4401a03b47ad8b910a09dcdfff533d /lib/libc
parent74c9c774d90bb7c3daf36783de93746138b9361c (diff)
Retire kernel support for SO_DONTROUTE, this time without breaking
localhost connections. The plan is to always use the routing table for addresses and routes resolutions, so there is no future for an option that wants to bypass it. This option has never been implemented for IPv6 anyway, so let's just remove the IPv4 bits that you weren't aware of. Tested a least by lteo@, guenther@ and chrisz@, ok mikeb@, benno@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/getsockopt.213
-rw-r--r--lib/libc/sys/send.28
2 files changed, 8 insertions, 13 deletions
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2
index 556ae778d73..5cb646f5479 100644
--- a/lib/libc/sys/getsockopt.2
+++ b/lib/libc/sys/getsockopt.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsockopt.2,v 1.45 2014/03/28 08:33:51 sthen Exp $
+.\" $OpenBSD: getsockopt.2,v 1.46 2014/04/07 10:04:17 mpi 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: March 28 2014 $
+.Dd $Mdocdate: April 7 2014 $
.Dt GETSOCKOPT 2
.Os
.Sh NAME
@@ -142,7 +142,7 @@ enables duplicate address and port bindings
.It Dv SO_KEEPALIVE
enables keep connections alive
.It Dv SO_DONTROUTE
-enables routing bypass for outgoing messages
+enables routing bypass; not supported
.It Dv SO_LINGER
linger on close if data present
.It Dv SO_BROADCAST
@@ -195,11 +195,6 @@ Should the connected party fail to respond to these messages, the connection
is considered broken and processes using the socket are notified via a
.Dv SIGPIPE
signal when attempting to send data.
-.Dv SO_DONTROUTE
-indicates that outgoing messages should
-bypass the standard routing facilities.
-Instead, messages are directed to the appropriate network interface
-according to the network portion of the destination address.
.Pp
.Dv SO_LINGER
controls the action taken when unsent messages
@@ -471,6 +466,8 @@ The argument
is a file, not a socket.
.It Bq Er ENOPROTOOPT
The option is unknown at the level indicated.
+.It Bq Er EOPNOTSUPP
+The option is unsupported.
.It Bq Er EFAULT
The address pointed to by
.Fa optval
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2
index 53c30094a68..93d2436bfe6 100644
--- a/lib/libc/sys/send.2
+++ b/lib/libc/sys/send.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: send.2,v 1.29 2014/03/28 08:33:51 sthen Exp $
+.\" $OpenBSD: send.2,v 1.30 2014/04/07 10:04:17 mpi Exp $
.\" $NetBSD: send.2,v 1.6 1996/01/15 01:17:18 thorpej Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)send.2 8.2 (Berkeley) 2/21/94
.\"
-.Dd $Mdocdate: March 28 2014 $
+.Dd $Mdocdate: April 7 2014 $
.Dt SEND 2
.Os
.Sh NAME
@@ -99,7 +99,7 @@ parameter may include one or more of the following:
.It Dv MSG_OOB
process out-of-band data
.It Dv MSG_DONTROUTE
-bypass routing, use direct interface
+bypass routing tables, silently ignored
.It Dv MSG_NOSIGNAL
don't send
.Dv SIGPIPE
@@ -116,8 +116,6 @@ data on sockets that support this notion (e.g.,
the underlying protocol must also support
.Dq out-of-band
data.
-.Dv MSG_DONTROUTE
-is usually used only by diagnostic or routing programs.
.Dv MSG_NOSIGNAL
is used to request not to send the
.Dv SIGPIPE