From 58e54934db5865cce63714ab016f36e05670a2a0 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 26 Mar 2013 02:24:10 +0100 Subject: Print neighbor address when hellos are received --- src/tlv_types.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3