Repository : ssh://git@open-mesh.org/batctl
On branch : next
commit 7cd993422760d6ec1a2de29541afce48daa51706 Author: Sven Eckelmann sven@narfation.org Date: Tue Oct 15 18:01:09 2013 +0200
batctl: Finish resolving of mac address early
It is not necessary to check the remaining msg buffer coming from the kernel when already the correct mac address was found.
Signed-off-by: Sven Eckelmann sven@narfation.org Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
7cd993422760d6ec1a2de29541afce48daa51706 functions.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/functions.c b/functions.c index 959784b..f2b23f2 100644 --- a/functions.c +++ b/functions.c @@ -683,6 +683,7 @@ static struct ether_addr *resolve_mac_from_cache(int ai_family, if (parsed) { if (memcmp(&l3addr_tmp, l3addr, l3_len) == 0) { mac_result = &mac_tmp; + finished = 1; break; } }