From ad9b38f7b39476f6dc3637954afe88c789eef783 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 28 Nov 2006 16:36:59 +0000 Subject: mib we pass to sysctl when fetching the routing table has 7 entries now, not 6 any more (rtableid added). need to tell sysctl so. --- usr.sbin/ripd/kroute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ripd/kroute.c') diff --git a/usr.sbin/ripd/kroute.c b/usr.sbin/ripd/kroute.c index 1b01d456519..f333186697c 100644 --- a/usr.sbin/ripd/kroute.c +++ b/usr.sbin/ripd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.3 2006/11/16 15:56:26 henning Exp $ */ +/* $OpenBSD: kroute.c,v 1.4 2006/11/28 16:36:58 henning Exp $ */ /* * Copyright (c) 2004 Esben Norby @@ -789,7 +789,7 @@ fetchtable(void) mib[5] = 0; mib[6] = 0; /* rtableid */ - if (sysctl(mib, 6, NULL, &len, NULL, 0) == -1) { + if (sysctl(mib, 7, NULL, &len, NULL, 0) == -1) { log_warn("sysctl"); return (-1); } @@ -797,7 +797,7 @@ fetchtable(void) log_warn("fetchtable"); return (-1); } - if (sysctl(mib, 6, buf, &len, NULL, 0) == -1) { + if (sysctl(mib, 7, buf, &len, NULL, 0) == -1) { log_warn("sysctl"); free(buf); return (-1); -- cgit v1.2.3