From f1cd10cc03a18d048ddd575f9fcd3ecf1be34bba Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 20 Oct 2015 18:11:53 +0000 Subject: [PATCH] Document SOCK_DNS flag ok guenther tedu semarie --- lib/libc/sys/socket.2 | 15 +++++++++++++-- 1 file 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 -- 2.20.1