summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-26 02:24:10 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-26 02:24:10 +0100
commit58e54934db5865cce63714ab016f36e05670a2a0 (patch)
tree0bea3d59cf5927c82cc91bfe02ef960914ee64aa
parent47bd032564a4812a607cbe9f5a44ef2b2f93278d (diff)
downloadbabel-58e54934db5865cce63714ab016f36e05670a2a0.tar
babel-58e54934db5865cce63714ab016f36e05670a2a0.zip
Print neighbor address when hellos are received
-rw-r--r--src/tlv_types.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tlv_types.c b/src/tlv_types.c
index 9b4c215..1cc1c3a 100644
--- a/src/tlv_types.c
+++ b/src/tlv_types.c
@@ -67,7 +67,10 @@ static void handle_tlv_hello(gmrf_t *gmrf, gmrf_context_t *ctx, const gp_babel_t
return;
}
- gmrf_logf(gmrf, LOG_DEBUG, "received hello with seqno %u.", ntohs(tlv_hello->seqno));
+ gmrf_logf(gmrf, LOG_DEBUG, "received hello from %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x[%s] with seqno %04x.",
+ arg->source->d[0], arg->source->d[1], arg->source->d[2], arg->source->d[3],
+ arg->source->d[4], arg->source->d[5], arg->source->d[6], arg->source->d[7],
+ gmrf_iface_get_name(gmrf, arg->iface->gmrf_iface), ntohs(tlv_hello->seqno));
gp_babel_neigh_t *neigh = get_tlv_neigh(arg);