summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2019-01-20 04:16:59 +0000
committerkrw <krw@openbsd.org>2019-01-20 04:16:59 +0000
commit3e0de04dc868aa1f28094d864f67bb78f26d7a8c (patch)
tree24976d49f69f5eea1e6b3b1454060d0ccadb544e
parentprinting the pinball bonus in the corner is confusing when you lose. (diff)
downloadwireguard-openbsd-3e0de04dc868aa1f28094d864f67bb78f26d7a8c.tar.xz
wireguard-openbsd-3e0de04dc868aa1f28094d864f67bb78f26d7a8c.zip
AF_ROUTE is preferred over PF_ROUTE in socket() and
setsockopt() calls. Recommended by guenther@ ok deraadt@
-rw-r--r--share/man/man4/route.410
1 files changed, 5 insertions, 5 deletions
diff --git a/share/man/man4/route.4 b/share/man/man4/route.4
index 9c74ced27a9..042d78a8f92 100644
--- a/share/man/man4/route.4
+++ b/share/man/man4/route.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: route.4,v 1.47 2018/07/05 13:42:48 benno Exp $
+.\" $OpenBSD: route.4,v 1.48 2019/01/20 04:16:59 krw Exp $
.\" $NetBSD: route.4,v 1.3 1994/11/30 16:22:31 jtc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)route.4 8.6 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: July 5 2018 $
+.Dd $Mdocdate: January 20 2019 $
.Dt ROUTE 4
.Os
.Sh NAME
@@ -41,7 +41,7 @@
.In net/if.h
.In net/route.h
.Ft int
-.Fn socket PF_ROUTE SOCK_RAW family
+.Fn socket AF_ROUTE SOCK_RAW family
.Sh DESCRIPTION
.Ox
provides some packet routing facilities.
@@ -212,7 +212,7 @@ unsigned int rtfilter;
rtfilter = ROUTE_FILTER(RTM_IFINFO) |
ROUTE_FILTER(RTM_IFANNOUNCE);
-if (setsockopt(routefd, PF_ROUTE, ROUTE_MSGFILTER,
+if (setsockopt(routefd, AF_ROUTE, ROUTE_MSGFILTER,
&rtfilter, sizeof(rtfilter)) == -1)
err(1, "setsockopt(ROUTE_MSGFILTER)");
.Ed
@@ -226,7 +226,7 @@ For example, to select only local, directly connected and static routes:
.Bd -literal -offset indent
unsigned int maxprio = RTP_STATIC;
-if (setsockopt(routefd, PF_ROUTE, ROUTE_PRIOFILTER,
+if (setsockopt(routefd, AF_ROUTE, ROUTE_PRIOFILTER,
&maxprio, sizeof(maxprio)) == -1)
err(1, "setsockopt(ROUTE_PRIOFILTER)");
.Ed