From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Sven Eckelmann <sven@narfation.org>
Subject: [B.A.T.M.A.N.] [PATCH 2/2] batctl: Finish resolving of mac address early
Date: Tue, 15 Oct 2013 18:01:09 +0200 [thread overview]
Message-ID: <1381852869-2104-2-git-send-email-sven@narfation.org> (raw)
In-Reply-To: <1381852869-2104-1-git-send-email-sven@narfation.org>
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>
---
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;
}
}
--
1.8.4.rc3
next prev parent reply other threads:[~2013-10-15 16:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 16:01 [B.A.T.M.A.N.] [PATCH 1/2] batctl: Fix static buffer for resolved mac adddress Sven Eckelmann
2013-10-15 16:01 ` Sven Eckelmann [this message]
2013-10-26 14:06 ` [B.A.T.M.A.N.] [PATCH 2/2] batctl: Finish resolving of mac address early Marek Lindner
2013-10-26 14:05 ` [B.A.T.M.A.N.] [PATCH 1/2] batctl: Fix static buffer for resolved mac adddress Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1381852869-2104-2-git-send-email-sven@narfation.org \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox