From 3585d400e03a4e43def868b492df440ae52a29bb Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 5 Jun 2000 19:31:55 +0000 Subject: Don't info about DR and BDR on non-MA networks. --- proto/ospf/iface.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 0d3e0329..ed509e97 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); + } } -- cgit v1.2.3