summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/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/ripd/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/ripd/kroute.c')
-rw-r--r--usr.sbin/ripd/kroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ripd/kroute.c b/usr.sbin/ripd/kroute.c
index cbe107036ee..619e885b21d 100644
--- a/usr.sbin/ripd/kroute.c
+++ b/usr.sbin/ripd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.24 2011/07/04 04:34:14 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.25 2014/06/23 03:46:17 guenther Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -817,7 +817,7 @@ fetchtable(void)
struct iface *iface = NULL;
mib[0] = CTL_NET;
- mib[1] = AF_ROUTE;
+ mib[1] = PF_ROUTE;
mib[2] = 0;
mib[3] = AF_INET;
mib[4] = NET_RT_DUMP;
@@ -943,7 +943,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;