aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-03-23 13:56:37 +0000
committerRon Yorston <rmy@pobox.com>2015-03-23 13:56:37 +0000
commit486a3907f353adeb7f3ced5357db1e604659b785 (patch)
tree5033870835b2b9d5b26ba1f4544943c47893b904 /networking
parent74ba8c760f3337218cddabaaa0acc4e1f5d6e6c5 (diff)
parent1850d5ec0e90fbfb598ed7ad8ff0a63b6e5692ce (diff)
downloadbusybox-w32-486a3907f353adeb7f3ced5357db1e604659b785.tar.gz
busybox-w32-486a3907f353adeb7f3ced5357db1e604659b785.tar.bz2
busybox-w32-486a3907f353adeb7f3ced5357db1e604659b785.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c9
-rw-r--r--networking/zcip.c2
2 files changed, 6 insertions, 5 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index daabeec0c..606fc049f 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1239,6 +1239,7 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
1239 char *pch; 1239 char *pch;
1240 bool okay = 0; 1240 bool okay = 0;
1241 int cmds_ret; 1241 int cmds_ret;
1242 bool curr_failure = 0;
1242 1243
1243 iface = xstrdup(target_list->data); 1244 iface = xstrdup(target_list->data);
1244 target_list = target_list->link; 1245 target_list = target_list->link;
@@ -1304,11 +1305,11 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
1304 /* Call the cmds function pointer, does either iface_up() or iface_down() */ 1305 /* Call the cmds function pointer, does either iface_up() or iface_down() */
1305 cmds_ret = cmds(currif); 1306 cmds_ret = cmds(currif);
1306 if (cmds_ret == -1) { 1307 if (cmds_ret == -1) {
1307 bb_error_msg("don't seem to have all the variables for %s/%s", 1308 bb_error_msg("don't have all variables for %s/%s",
1308 liface, currif->address_family->name); 1309 liface, currif->address_family->name);
1309 any_failures = 1; 1310 any_failures = curr_failure = 1;
1310 } else if (cmds_ret == 0) { 1311 } else if (cmds_ret == 0) {
1311 any_failures = 1; 1312 any_failures = curr_failure = 1;
1312 } 1313 }
1313 1314
1314 currif->iface = oldiface; 1315 currif->iface = oldiface;
@@ -1329,7 +1330,7 @@ int ifupdown_main(int argc UNUSED_PARAM, char **argv)
1329 llist_t *state_list = read_iface_state(); 1330 llist_t *state_list = read_iface_state();
1330 llist_t *iface_state = find_iface_state(state_list, iface); 1331 llist_t *iface_state = find_iface_state(state_list, iface);
1331 1332
1332 if (cmds == iface_up && !any_failures) { 1333 if (cmds == iface_up && !curr_failure) {
1333 char *newiface = xasprintf("%s=%s", iface, liface); 1334 char *newiface = xasprintf("%s=%s", iface, liface);
1334 if (!iface_state) { 1335 if (!iface_state) {
1335 llist_add_to_end(&state_list, newiface); 1336 llist_add_to_end(&state_list, newiface);
diff --git a/networking/zcip.c b/networking/zcip.c
index a3307c5c9..962ba2e60 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -521,7 +521,7 @@ int zcip_main(int argc UNUSED_PARAM, char **argv)
521 target_ip_conflict = 0; 521 target_ip_conflict = 0;
522 522
523 if (memcmp(&p.arp.arp_sha, &eth_addr, ETH_ALEN) != 0) { 523 if (memcmp(&p.arp.arp_sha, &eth_addr, ETH_ALEN) != 0) {
524 if (memcmp(p.arp.arp_spa, &ip.s_addr, sizeof(struct in_addr))) { 524 if (memcmp(p.arp.arp_spa, &ip.s_addr, sizeof(struct in_addr)) == 0) {
525 /* A probe or reply with source_ip == chosen ip */ 525 /* A probe or reply with source_ip == chosen ip */
526 source_ip_conflict = 1; 526 source_ip_conflict = 1;
527 } 527 }