summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-03-31 01:37:34 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-03-31 01:37:34 +0000
commit9b8762ea1c5c78bbf72d0c3b709ccfcae7e6ca5f (patch)
tree3b75699c450ac109c23152a242934f89f6861ddc
parent57a4434c4472a5200b5b6bab18070cc6c60b4c6e (diff)
document the changes to the route filter API. basically:
-ROUTE_SETFILTER(rtfilter, RTM_IFINFO); -ROUTE_SETFILTER(rtfilter, RTM_IFANNOUNCE); +rtfilter = ROUTE_FILTER(RTM_IFINFO) | + ROUTE_FILTER(RTM_IFANNOUNCE); poked by claudio@
-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 f926ff924d4..e35e176cbae 100644
--- a/share/man/man4/route.4
+++ b/share/man/man4/route.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: route.4,v 1.27 2009/03/27 13:31:15 jmc Exp $
+.\" $OpenBSD: route.4,v 1.28 2009/03/31 01:37:33 dlg 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: March 27 2009 $
+.Dd $Mdocdate: March 31 2009 $
.Dt ROUTE 4
.Os
.Sh NAME
@@ -188,7 +188,7 @@ system call for further input.
.Pp
A process can specify which route message types it's interested in
by using
-.Dv ROUTE_SETFILTER(unsigned int flags, int type)
+.Dv ROUTE_FILTER(int type)
and issuing a setsockopt call with the
.Dv ROUTE_MSGFILTER
option at the
@@ -198,8 +198,8 @@ For example, to only get interface specific messages:
.Bd -literal -offset indent
unsigned int rtfilter;
-ROUTE_SETFILTER(rtfilter, RTM_IFINFO);
-ROUTE_SETFILTER(rtfilter, RTM_IFANNOUNCE);
+rtfilter = ROUTE_FILTER(RTM_IFINFO) |
+ ROUTE_FILTER(RTM_IFANNOUNCE);
if (setsockopt(routefd, PF_ROUTE, ROUTE_MSGFILTER,
&rtfilter, sizeof(rtfilter)) == -1)