summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-05 21:31:55 +0200
committerOndrej Filip <feela@network.cz>2000-06-05 21:31:55 +0200
commit3585d400e03a4e43def868b492df440ae52a29bb (patch)
tree0d2dba1ee93511a586962d4d3ce78f4a4f78cd56 /proto
parent2debcb9eb0d76362003726ca8b0f5f43ee275dee (diff)
downloadbird-3585d400e03a4e43def868b492df440ae52a29bb.tar
bird-3585d400e03a4e43def868b492df440ae52a29bb.zip
Don't info about DR and BDR on non-MA networks.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 0d3e032..ed509e9 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -434,8 +434,11 @@ ospf_iface_info(struct ospf_iface *ifa)
cli_msg(-1015,"\tWait timer: %u", ifa->waitint);
cli_msg(-1015,"\tDead timer: %u", ifa->deadc*ifa->helloint);
cli_msg(-1015,"\tRetransmit timer: %u", ifa->rxmtint);
- cli_msg(-1015,"\tDesigned router (ID): %I", ifa->drid);
- cli_msg(-1015,"\tDesigned router (IP): %I", ifa->drip);
- cli_msg(-1015,"\tBackup designed router (ID): %I", ifa->bdrid);
- cli_msg(-1015,"\tBackup designed router (IP): %I", ifa->bdrip);
+ if((ifa->type==OSPF_IT_BCAST)||(ifa->type==OSPF_IT_NBMA))
+ {
+ cli_msg(-1015,"\tDesigned router (ID): %I", ifa->drid);
+ cli_msg(-1015,"\tDesigned router (IP): %I", ifa->drip);
+ cli_msg(-1015,"\tBackup designed router (ID): %I", ifa->bdrid);
+ cli_msg(-1015,"\tBackup designed router (IP): %I", ifa->bdrip);
+ }
}