summaryrefslogtreecommitdiffstats
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/iface.c')
-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);
+ }
}