summaryrefslogtreecommitdiffstats
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-06 04:34:57 +0200
committerOndrej Filip <feela@network.cz>2000-06-06 04:34:57 +0200
commitabcbfd0400eeb514c63376b50d3948581c20ca4c (patch)
treee52c77c9d47ed77e2eb266280f5ccf102faa2a34 /proto/ospf/hello.c
parent531a48d8c5c168329640ccb21cd062dbb7b6f5a2 (diff)
downloadbird-abcbfd0400eeb514c63376b50d3948581c20ca4c.tar
bird-abcbfd0400eeb514c63376b50d3948581c20ca4c.zip
Tracing.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r--proto/ospf/hello.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c
index 100dec5..8117afe 100644
--- a/proto/ospf/hello.c
+++ b/proto/ospf/hello.c
@@ -58,7 +58,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
nrid=ntohl(((struct ospf_packet *)ps)->routerid);
- debug("%s: Received hello from %I via %s\n",p->name,faddr,ifa->iface->name);
+ OSPF_TRACE(D_PACKETS, "Received hello from %I via %s",faddr,ifa->iface->name);
if((unsigned)ipa_mklen(ipa_ntoh(ps->netmask))!=ifa->iface->addr->pxlen)
{
@@ -87,7 +87,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
if((n=find_neigh(ifa, nrid))==NULL)
{
- debug("%s: New neighbor found: %I on %s.", p->name,faddr,
+ OSPF_TRACE(D_EVENTS, "New neighbor found: %I on %s.", faddr,
ifa->iface->name);
n=mb_allocz(p->pool, sizeof(struct ospf_neighbor));
add_tail(&ifa->neigh_list, NODE n);
@@ -255,7 +255,7 @@ hello_timer_hook(timer *timer)
}
sk_send_to_agt(ifa->ip_sk, length, ifa, NEIGHBOR_DOWN);
}
- debug("%s: Hello sent via %s\n",p->name,ifa->iface->name);
+ OSPF_TRACE(D_PACKETS, "Hello sent via %s",ifa->iface->name);
}
void