diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-04-06 16:17:47 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-04-06 16:17:47 +0200 |
commit | 8298d780be5a5b00c31c10a37a5f3a1353d6e234 (patch) | |
tree | 649a999a1cd0c44e4be09da8f3e16b6cb574037a /proto/ospf/hello.c | |
parent | bcb81251b4e37b96743aa1cdf790f30ef41a465e (diff) | |
download | bird-8298d780be5a5b00c31c10a37a5f3a1353d6e234.tar bird-8298d780be5a5b00c31c10a37a5f3a1353d6e234.zip |
Better OSPF packet tracing log messages.
Replaces old OSPF packet tracing messages with
uniform messages with packet dumps.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r-- | proto/ospf/hello.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c index ce87431..c7d2027 100644 --- a/proto/ospf/hello.c +++ b/proto/ospf/hello.c @@ -19,7 +19,7 @@ ospf_hello_receive(struct ospf_hello_packet *ps, struct proto *p = (struct proto *) ifa->oa->po; unsigned int size = ntohs(ps->ospf_packet.length), i, twoway, oldpriority, eligible = 0, peers; - OSPF_TRACE(D_PACKETS, "Received hello from %I via %s%s", faddr, + OSPF_TRACE(D_PACKETS, "HELLO packet received from %I via %s%s", faddr, (ifa->type == OSPF_IT_VLINK ? "vlink-" : ""), ifa->iface->name); mask = ps->netmask; ipa_ntoh(mask); @@ -282,6 +282,7 @@ ospf_hello_send(timer * timer, int poll, struct ospf_neighbor *dirn) default: ospf_send_to(ifa->hello_sk, IPA_NONE, ifa); } - OSPF_TRACE(D_PACKETS, "Hello sent via %s%s", - (ifa->type == OSPF_IT_VLINK ? "vlink-" : ""), ifa->iface->name); + + OSPF_TRACE(D_PACKETS, "HELLO packet sent via %s%s", + (ifa->type == OSPF_IT_VLINK ? "vlink-" : ""), ifa->iface->name); } |