summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/printconf.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2010-08-22 21:15:26 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2010-08-22 21:15:26 +0000
commite332c640366dec097cd0fce713647877e049f841 (patch)
tree09faa050f385c2eb717bde1c9b86a499fbd5c1d6 /usr.sbin/ospf6d/printconf.c
parent8b0fe1f05a24ae94c4d8e02325e8956d04164f11 (diff)
Redistributing the default route with ospf6d did not work correctly.
- kroute.c may not ignore the default route. - Use the ROUNDUP macro from route/show.c as this one is also correct for netmask with prefixlen 0. - Implement ospf_redistribute and the redistribute parser like ospfd. ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/printconf.c')
-rw-r--r--usr.sbin/ospf6d/printconf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospf6d/printconf.c b/usr.sbin/ospf6d/printconf.c
index 26a9f3500d9..9f8f5f29fb4 100644
--- a/usr.sbin/ospf6d/printconf.c
+++ b/usr.sbin/ospf6d/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.3 2007/12/13 08:54:05 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.4 2010/08/22 21:15:25 bluhm Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -69,9 +69,6 @@ print_redistribute(struct ospfd_conf *conf)
{
struct redistribute *r;
- if (conf->redistribute & REDISTRIBUTE_DEFAULT)
- printf("redistribute default\n");
-
SIMPLEQ_FOREACH(r, &conf->redist_list, entry) {
switch (r->type & ~REDIST_NO) {
case REDIST_STATIC:
@@ -89,6 +86,9 @@ print_redistribute(struct ospfd_conf *conf)
print_no(r->type), log_in6addr(&r->addr),
r->prefixlen);
break;
+ case REDIST_DEFAULT:
+ printf("%sredistribute default\n", print_no(r->type));
+ break;
}
}
}