diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-26 02:24:10 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-26 02:24:10 +0100 |
commit | 58e54934db5865cce63714ab016f36e05670a2a0 (patch) | |
tree | 0bea3d59cf5927c82cc91bfe02ef960914ee64aa | |
parent | 47bd032564a4812a607cbe9f5a44ef2b2f93278d (diff) | |
download | babel-58e54934db5865cce63714ab016f36e05670a2a0.tar babel-58e54934db5865cce63714ab016f36e05670a2a0.zip |
Print neighbor address when hellos are received
-rw-r--r-- | src/tlv_types.c | 5 |
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); |