summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-01-25 08:06:16 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-01-25 08:06:16 +0000
commite4045e2ff555aabef0884e3e80c34375a9167a8b (patch)
tree089069d7dca1a2db16a9f7f3ee0e064b5d5bb56d
parent0bf6f093a982021b428c0b39d130179c16710cad (diff)
The correct spelling is AF_ROUTE; from Caspar Schutijser, thanks!
-rw-r--r--sbin/unwind/unwind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/unwind/unwind.c b/sbin/unwind/unwind.c
index 07f0086a315..998da024970 100644
--- a/sbin/unwind/unwind.c
+++ b/sbin/unwind/unwind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unwind.c,v 1.2 2019/01/24 17:39:43 florian Exp $ */
+/* $OpenBSD: unwind.c,v 1.3 2019/01/25 08:06:15 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -270,13 +270,13 @@ main(int argc, char *argv[])
if ((control_fd = control_init(csock)) == -1)
fatalx("control socket setup failed");
- if ((frontend_routesock = socket(PF_ROUTE, SOCK_RAW | SOCK_CLOEXEC,
+ if ((frontend_routesock = socket(AF_ROUTE, SOCK_RAW | SOCK_CLOEXEC,
AF_INET)) < 0)
fatal("route socket");
rtfilter = ROUTE_FILTER(RTM_IFINFO) | ROUTE_FILTER(RTM_PROPOSAL) |
ROUTE_FILTER(RTM_GET);
- if (setsockopt(frontend_routesock, PF_ROUTE, ROUTE_MSGFILTER,
+ if (setsockopt(frontend_routesock, AF_ROUTE, ROUTE_MSGFILTER,
&rtfilter, sizeof(rtfilter)) < 0)
fatal("setsockopt(ROUTE_MSGFILTER)");