summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-20 18:11:53 +0000
committerderaadt <deraadt@openbsd.org>2015-10-20 18:11:53 +0000
commitf1cd10cc03a18d048ddd575f9fcd3ecf1be34bba (patch)
treec4518f24db3160838080ad348dee66dac19a27bd
parentAt guenther's suggestion replace dnssocket() with a SOCK_DNS flag on (diff)
downloadwireguard-openbsd-f1cd10cc03a18d048ddd575f9fcd3ecf1be34bba.tar.xz
wireguard-openbsd-f1cd10cc03a18d048ddd575f9fcd3ecf1be34bba.zip
Document SOCK_DNS flag
ok guenther tedu semarie
-rw-r--r--lib/libc/sys/socket.215
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2
index cb62cb4c5f6..af3147ed3c2 100644
--- a/lib/libc/sys/socket.2
+++ b/lib/libc/sys/socket.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: socket.2,v 1.39 2015/02/28 21:51:57 bentley Exp $
+.\" $OpenBSD: socket.2,v 1.40 2015/10/20 18:11:53 deraadt Exp $
.\" $NetBSD: socket.2,v 1.5 1995/02/27 12:37:53 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)socket.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: February 28 2015 $
+.Dd $Mdocdate: October 20 2015 $
.Dt SOCKET 2
.Os
.Sh NAME
@@ -105,6 +105,17 @@ argument:
Set close-on-exec flag on the new descriptor.
.It SOCK_NONBLOCK
Set non-blocking I/O mode on the new socket.
+.It SOCK_DNS
+For domains
+.Dv AF_INET
+or
+.Dv AF_INET6 ,
+only allow
+.Xr connect 2 ,
+.Xr sendto 2 ,
+or
+.Xr sendmsg 2
+to the DNS port (typically 53).
.El
.Pp
The