diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-11-28 16:36:59 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-11-28 16:36:59 +0000 |
commit | ad9b38f7b39476f6dc3637954afe88c789eef783 (patch) | |
tree | 2818b774dea1c6c3551024b0fd805d53dfa33b2e /usr.sbin | |
parent | df6c444ca915112f44b251baecc27b3332d211f4 (diff) |
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/kroute.c | 6 | ||||
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 6 | ||||
-rw-r--r-- | usr.sbin/ripd/kroute.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index f32b6b3c0a6..a417f0f7e6b 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.148 2006/11/16 15:54:49 henning Exp $ */ +/* $OpenBSD: kroute.c,v 1.149 2006/11/28 16:36:58 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1897,7 +1897,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); } @@ -1905,7 +1905,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); diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index a33f91688f1..cb74def38fc 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.35 2006/11/17 08:55:31 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.36 2006/11/28 16:36:58 henning Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -812,7 +812,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); } @@ -820,7 +820,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); 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 <norby@openbsd.org> @@ -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); |