summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfctl
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2010-06-12 09:44:44 +0000
committerbluhm <bluhm@openbsd.org>2010-06-12 09:44:44 +0000
commitce1e71cc999e831b28d7e109de14028dfdebe503 (patch)
treeb2f52e53e087a7e3245c8f0460fe2fa7cf8a41ba /usr.sbin/ospfctl
parentat line 445 `al' is allocated via `aldap_init' in `client_aldap_open' (diff)
downloadwireguard-openbsd-ce1e71cc999e831b28d7e109de14028dfdebe503.tar.xz
wireguard-openbsd-ce1e71cc999e831b28d7e109de14028dfdebe503.zip
Print 'Number of Routers' in show database network.
ok claudio@
Diffstat (limited to 'usr.sbin/ospfctl')
-rw-r--r--usr.sbin/ospfctl/ospfctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c
index 120a12f1971..efb6b1b96af 100644
--- a/usr.sbin/ospfctl/ospfctl.c
+++ b/usr.sbin/ospfctl/ospfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfctl.c,v 1.53 2010/02/19 10:35:52 dlg Exp $ */
+/* $OpenBSD: ospfctl.c,v 1.54 2010/06/12 09:44:44 bluhm Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -787,6 +787,7 @@ show_db_msg_detail(struct imsg *imsg)
nlinks = (ntohs(lsa->hdr.len) - sizeof(struct lsa_hdr)
- sizeof(u_int32_t)) / sizeof(struct lsa_net_link);
off = sizeof(lsa->hdr) + sizeof(u_int32_t);
+ printf("Number of Routers: %d\n", nlinks);
for (i = 0; i < nlinks; i++) {
addr.s_addr = lsa->data.net.att_rtr[i];