1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

fix zcip arp error

This commit is contained in:
Ralph Metzler 2016-04-13 15:48:30 +02:00
parent b07f680c1f
commit 19d82f46d0
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -rup busybox-1.23.1.orig/networking/zcip.c busybox-1.23.1/networking/zcip.c
--- busybox-1.23.1.orig/networking/zcip.c 2015-01-27 09:48:58.000000000 +0100
+++ busybox-1.23.1/networking/zcip.c 2016-04-13 15:36:12.255391459 +0200
@@ -521,7 +521,7 @@ int zcip_main(int argc UNUSED_PARAM, cha
target_ip_conflict = 0;
if (memcmp(&p.arp.arp_sha, &eth_addr, ETH_ALEN) != 0) {
- if (memcmp(p.arp.arp_spa, &ip.s_addr, sizeof(struct in_addr))) {
+ if (memcmp(p.arp.arp_spa, &ip.s_addr, sizeof(struct in_addr)) == 0) {
/* A probe or reply with source_ip == chosen ip */
source_ip_conflict = 1;
}

View File

@ -14,6 +14,7 @@ if [ ! -e buildroot ]; then
tar xf buildroot-2015.02-rc2.tar.bz2 tar xf buildroot-2015.02-rc2.tar.bz2
mv buildroot-2015.02-rc2 buildroot mv buildroot-2015.02-rc2 buildroot
cp dvb-apps-0002-Fix-broken-bitops-on-arm.patch buildroot/package/dvb-apps/ cp dvb-apps-0002-Fix-broken-bitops-on-arm.patch buildroot/package/dvb-apps/
cp busybox-0001-Fix-zcip-arp-compare.patch buildroot/package/busybox/
if [ -e dl ]; then if [ -e dl ]; then
ln -sf ../dl buildroot ln -sf ../dl buildroot
fi fi