From f510e60a932c248b782e0217055433775b7f1bbf Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Tue, 22 Jan 2019 09:25:30 +0000 Subject: PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls where the "wrong" #define was used. ok dlg@ --- usr.sbin/ldpd/kroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ldpd/kroute.c') 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 @@ -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__); -- cgit v1.2.3