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:
parent
b07f680c1f
commit
19d82f46d0
12
busybox-0001-Fix-zcip-arp-compare.patch
Normal file
12
busybox-0001-Fix-zcip-arp-compare.patch
Normal 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, ð_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;
|
||||
}
|
1
mk.patch
1
mk.patch
@ -14,6 +14,7 @@ if [ ! -e buildroot ]; then
|
||||
tar xf buildroot-2015.02-rc2.tar.bz2
|
||||
mv buildroot-2015.02-rc2 buildroot
|
||||
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
|
||||
ln -sf ../dl buildroot
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user