summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_vty.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-19 19:44:43 +0000
committerhasso <hasso>2004-10-19 19:44:43 +0000
commitb1ef841a33839c8169570b18995c1f11847b7a00 (patch)
tree99bb1bcff310939d9128fc89154b63dfbd8753fb /ospfd/ospf_vty.c
parent00b65ae1f8e2d8f3f54b54b0a84ff55d33aff077 (diff)
downloadquagga-b1ef841a33839c8169570b18995c1f11847b7a00.tar.bz2
quagga-b1ef841a33839c8169570b18995c1f11847b7a00.tar.xz
OK. Here it is - PtP patch from Andrew J. Schorr. No problems with ospfd,
ripd might need some more testing though.
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r--ospfd/ospf_vty.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 0ecb6fb4..c84da747 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -2550,6 +2550,11 @@ show_ip_ospf_interface_sub (struct vty *vty, struct ospf *ospf,
vty_out (vty, " Internet Address %s/%d,",
inet_ntoa (oi->address->u.prefix4), oi->address->prefixlen);
+ if (oi->connected->destination)
+ vty_out (vty, " %s %s,",
+ ((ifp->flags & IFF_POINTOPOINT) ? "Peer" : "Broadcast"),
+ inet_ntoa (oi->connected->destination->u.prefix4));
+
vty_out (vty, " Area %s%s", ospf_area_desc_string (oi->area),
VTY_NEWLINE);