diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-20 18:11:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-20 18:11:54 +0000 |
commit | acf03f29a606dfd39ab9fc10b8bf075325c7b7dd (patch) | |
tree | 5ebd7e84e6f87e685802c6bbe1fdbe14b93bfcf2 /lib | |
parent | 000a9319a0343f787afb5a159cdbed27401eb4b3 (diff) |
Document SOCK_DNS flag
ok guenther tedu semarie
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/socket.2 | 15 |
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 |