diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2009-03-24 19:26:14 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2009-03-24 19:26:14 +0000 |
commit | 55cbfa02b07b89c549e6771b491b59af0985a277 (patch) | |
tree | 1be39f7af968ec32ff27bb9012a2431cc4201f96 /usr.sbin/ripd/printconf.c | |
parent | f737e3718218bf6c2b61dec5f7b37c4842378fac (diff) |
Change the behaviour of redistribute default.
Now a default route have to be present in the fib to be correctly advertised.
Spotted and tested by Steven Surdok on ripd.
ok claudio@
Diffstat (limited to 'usr.sbin/ripd/printconf.c')
-rw-r--r-- | usr.sbin/ripd/printconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ripd/printconf.c b/usr.sbin/ripd/printconf.c index bc0d0603c97..4564540f0de 100644 --- a/usr.sbin/ripd/printconf.c +++ b/usr.sbin/ripd/printconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printconf.c,v 1.4 2007/10/18 09:42:47 claudio Exp $ */ +/* $OpenBSD: printconf.c,v 1.5 2009/03/24 19:26:13 michele Exp $ */ /* * Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org> @@ -70,9 +70,6 @@ print_redistribute(struct ripd_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: @@ -85,6 +82,9 @@ print_redistribute(struct ripd_conf *conf) printf("%sredistribute rtlabel %s\n", print_no(r->type), rtlabel_id2name(r->label)); break; + case REDIST_DEFAULT: + printf("redistribute default\n"); + break; case REDIST_ADDR: printf("%ssredistribute %s/%d\n", print_no(r->type), inet_ntoa(r->addr), |