summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpd/kroute.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-06-23 03:46:18 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-06-23 03:46:18 +0000
commitc39cf5c6337d9356a175b97eb0b3aedccfd86181 (patch)
tree917a8723e1c99419650984b52371ff89efa1bdb8 /usr.sbin/dvmrpd/kroute.c
parentfa550c5927b364008a8192d7c1b2a720e9036960 (diff)
The second level of the CTL_NET sysctl is a PF_*, not an AF_*
inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
Diffstat (limited to 'usr.sbin/dvmrpd/kroute.c')
-rw-r--r--usr.sbin/dvmrpd/kroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/kroute.c b/usr.sbin/dvmrpd/kroute.c
index 40699627cf6..d958a376d50 100644
--- a/usr.sbin/dvmrpd/kroute.c
+++ b/usr.sbin/dvmrpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.7 2011/07/04 04:34:14 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.8 2014/06/23 03:46:17 guenther Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -305,7 +305,7 @@ fetchifs(int ifindex)
struct sockaddr_dl *sdl;
mib[0] = CTL_NET;
- mib[1] = AF_ROUTE;
+ mib[1] = PF_ROUTE;
mib[2] = 0;
mib[3] = AF_INET;
mib[4] = NET_RT_IFLIST;