From 269cb86aeb62847a41d599399b6985fb093dcf93 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 7 Jul 2011 04:35:48 +0000 Subject: correct/change some debug and fatal messages. --- usr.sbin/ospf6d/rde.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c index 88e103c9522..3c562081f38 100644 --- a/usr.sbin/ospf6d/rde.c +++ b/usr.sbin/ospf6d/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.55 2011/07/07 00:36:13 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.56 2011/07/07 04:35:47 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker @@ -738,7 +738,7 @@ rde_dispatch_parent(int fd, short event, void *bula) memcpy(&ifindex, imsg.data, sizeof(ifindex)); iface = if_find(ifindex); if (iface == NULL) - fatalx("interface lost in ospfe"); + fatalx("interface lost in rde"); LIST_REMOVE(iface, entry); if_del(iface); @@ -1462,8 +1462,6 @@ orig_intra_lsa_rtr(struct area *area, struct vertex *old) lsa->data.pref_intra.ref_ls_id = 0; lsa->data.pref_intra.ref_adv_rtr = rde_router_id(); - log_debug("orig_intra_lsa_rtr: area %s", inet_ntoa(area->id)); - numprefix = 0; LIST_FOREACH(iface, &area->iface_list, entry) { if (!((iface->flags & IFF_UP) && @@ -1475,10 +1473,6 @@ orig_intra_lsa_rtr(struct area *area, struct vertex *old) /* passive interfaces stay in state DOWN */ continue; - log_debug("orig_intra_lsa_rtr: area %s, interface %s: " - "including in intra-area-prefix LSA", - inet_ntoa(area->id), iface->name); - /* Broadcast links with adjacencies are handled * by orig_intra_lsa_net(), ignore. */ if (iface->type == IF_TYPE_BROADCAST || @@ -1516,6 +1510,11 @@ orig_intra_lsa_rtr(struct area *area, struct vertex *old) if (lsa_prefix->prefixlen == 128) lsa_prefix->options |= OSPF_PREFIX_LA; + log_debug("orig_intra_lsa_rtr: area %s, interface %s: " + "%s/%d", inet_ntoa(area->id), + iface->name, log_in6addr(&ia->addr), + lsa_prefix->prefixlen); + prefix = (struct in6_addr *)(lsa_prefix + 1); inet6applymask(prefix, &ia->addr, lsa_prefix->prefixlen); -- cgit v1.2.3