summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/kroute.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-01-22 09:25:30 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-01-22 09:25:30 +0000
commitf510e60a932c248b782e0217055433775b7f1bbf (patch)
tree3c0a341e1946064b8468bb29d0dfa9f0b63e6a05 /usr.sbin/ldpd/kroute.c
parentb13e6a05b26f1b7259902e126de9350a99cd6fc8 (diff)
PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls
where the "wrong" #define was used. ok dlg@
Diffstat (limited to 'usr.sbin/ldpd/kroute.c')
-rw-r--r--usr.sbin/ldpd/kroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/kroute.c b/usr.sbin/ldpd/kroute.c
index 5eabbb7d83c..f04e3de8638 100644
--- a/usr.sbin/ldpd/kroute.c
+++ b/usr.sbin/ldpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.67 2018/01/03 19:39:07 denis Exp $ */
+/* $OpenBSD: kroute.c,v 1.68 2019/01/22 09:25:29 krw Exp $ */
/*
* Copyright (c) 2015, 2016 Renato Westphal <renato@openbsd.org>
@@ -171,7 +171,7 @@ kr_init(int fs, unsigned int rdomain)
ROUTE_FILTER(RTM_IFINFO) | ROUTE_FILTER(RTM_NEWADDR) |
ROUTE_FILTER(RTM_DELADDR) | ROUTE_FILTER(RTM_IFANNOUNCE);
- if (setsockopt(kr_state.fd, PF_ROUTE, ROUTE_MSGFILTER,
+ if (setsockopt(kr_state.fd, AF_ROUTE, ROUTE_MSGFILTER,
&rtfilter, sizeof(rtfilter)) == -1)
log_warn("%s: setsockopt(ROUTE_MSGFILTER)", __func__);