summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/busybox
diff options
context:
space:
mode:
authorBrad Mouring <brad.mouring@ni.com>2016-04-11 00:29:06 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-11 22:02:03 +0100
commit09e3b84ea5de35c999be5266973dfa30a79b38b6 (patch)
tree4a80cf3aacc85f4ce619001284d7ccad5eebd331 /meta/recipes-core/busybox/busybox
parent4fe84e836de75ccc664ef7b8b088ebdf650c1f79 (diff)
downloadpoky-09e3b84ea5de35c999be5266973dfa30a79b38b6.tar.gz
busybox-1.23: Backport patch to fix zcip false-conflict
Busybox upstream fixed the issue where an incorrect comparison of addresses led to bogus renegotiation of a new ll ip in 1.24. Backport this change to 1.23.2. (From OE-Core rev: 47cb52741c946b6bbe09d5ee9a9f2fe855e8d5fb) Signed-off-by: Brad Mouring <brad.mouring@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox/busybox')
-rw-r--r--meta/recipes-core/busybox/busybox/0001-zcip-fix-wrong-comparison-of-source-IP-with-our-IP.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox/0001-zcip-fix-wrong-comparison-of-source-IP-with-our-IP.patch b/meta/recipes-core/busybox/busybox/0001-zcip-fix-wrong-comparison-of-source-IP-with-our-IP.patch
new file mode 100644
index 0000000000..dec5eb5cf1
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox/0001-zcip-fix-wrong-comparison-of-source-IP-with-our-IP.patch
@@ -0,0 +1,38 @@
1From 4d15068d83054a9f82b3f8842706cd6deb401e25 Mon Sep 17 00:00:00 2001
2From: Vladislav Grishenko <themiron@mail.ru>
3Date: Thu, 19 Mar 2015 16:19:35 +0500
4Subject: [PATCH] zcip: fix wrong comparison of source IP with our IP
5
6Commit "zcip: fix link-local IP conflict detection" has introduced
7wrong comparsion of source IP with our IP. This leads to a new IP
8being picked unnecessarily on every incoming ARP packet.
9
10Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
11Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12
13This change was picked from Busybox without modification
14(git://git.busybox.net/busybox, commit 4d15068)
15
16Upstream-Status: Backport (added in 1.24)
17Signed-off-by: Brad Mouring <brad.mouring@ni.com>
18
19---
20 networking/zcip.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/networking/zcip.c b/networking/zcip.c
24index a3307c5..962ba2e 100644
25--- a/networking/zcip.c
26+++ b/networking/zcip.c
27@@ -521,7 +521,7 @@ int zcip_main(int argc UNUSED_PARAM, char **argv)
28 target_ip_conflict = 0;
29
30 if (memcmp(&p.arp.arp_sha, &eth_addr, ETH_ALEN) != 0) {
31- if (memcmp(p.arp.arp_spa, &ip.s_addr, sizeof(struct in_addr))) {
32+ if (memcmp(p.arp.arp_spa, &ip.s_addr, sizeof(struct in_addr)) == 0) {
33 /* A probe or reply with source_ip == chosen ip */
34 source_ip_conflict = 1;
35 }
36--
372.7.3
38