summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEsben Norby <norby@cvs.openbsd.org>2007-10-12 09:29:46 +0000
committerEsben Norby <norby@cvs.openbsd.org>2007-10-12 09:29:46 +0000
commit3244a1a7eee64983db82db9e908b90d242ffbdee (patch)
tree87207da1c4e9ddd2563c24b185cfbe2634f8a7f3 /usr.sbin
parent6d3ee613b5a67f4025bddc09a68fa332112bb542 (diff)
Sanitize the output of "show interface detail".
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospf6ctl/ospf6ctl.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c
index 2de12792969..0a75808611d 100644
--- a/usr.sbin/ospf6ctl/ospf6ctl.c
+++ b/usr.sbin/ospf6ctl/ospf6ctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6ctl.c,v 1.2 2007/10/12 09:23:37 norby Exp $ */
+/* $OpenBSD: ospf6ctl.c,v 1.3 2007/10/12 09:29:45 norby Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -382,7 +382,7 @@ show_interface_detail_msg(struct imsg *imsg)
printf("\n");
printf("Interface %s, line protocol is %s\n",
iface->name, print_link(iface->flags));
- printf(" Internet address %s/ ",
+ printf(" Internet address %s ",
log_in6addr(&iface->addr));
printf("Area %s\n", inet_ntoa(iface->area));
printf(" Linkstate %s\n",
@@ -394,12 +394,14 @@ show_interface_detail_msg(struct imsg *imsg)
printf(" Transmit delay is %d sec(s), state %s, priority %d\n",
iface->transmit_delay, if_state_name(iface->state),
iface->priority);
- printf(" Designated Router (ID) %s, ",
+ printf(" Designated Router (ID) %s\n",
inet_ntoa(iface->dr_id));
- printf("interface address %s\n", log_in6addr(&iface->dr_addr));
- printf(" Backup Designated Router (ID) %s, ",
+ printf(" Interface address %s\n",
+ log_in6addr(&iface->dr_addr));
+ printf(" Backup Designated Router (ID) %s\n",
inet_ntoa(iface->bdr_id));
- printf("interface address %s\n", log_in6addr(&iface->bdr_addr));
+ printf(" Interface address %s\n",
+ log_in6addr(&iface->bdr_addr));
printf(" Timer intervals configured, "
"hello %d, dead %d, wait %d, retransmit %d\n",
iface->hello_interval, iface->dead_interval,