diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-02-03 12:44:59 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-02-03 12:44:59 +0000 |
commit | 46c203a6cef9ce1cdd74fdc1183ccd2cf2dfe5bf (patch) | |
tree | 8dad3742c1956cbacc68f8bbcaf2eabae7f4da82 | |
parent | 21110a0aa2bda7346bdd916bbc027dfa38ee7c12 (diff) | |
download | busybox-w32-46c203a6cef9ce1cdd74fdc1183ccd2cf2dfe5bf.tar.gz busybox-w32-46c203a6cef9ce1cdd74fdc1183ccd2cf2dfe5bf.tar.bz2 busybox-w32-46c203a6cef9ce1cdd74fdc1183ccd2cf2dfe5bf.zip |
Fix a couple more ifupdown bugs
-rw-r--r-- | networking/ifupdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index fcedfd0cf..0511a5b95 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -457,7 +457,7 @@ static int loopback_up(interface_defn_t *ifd, execfn *exec) | |||
457 | #ifdef CONFIG_FEATURE_IFUPDOWN_IP | 457 | #ifdef CONFIG_FEATURE_IFUPDOWN_IP |
458 | if (!execute("ip link set %iface% up", ifd, exec)) | 458 | if (!execute("ip link set %iface% up", ifd, exec)) |
459 | return(0); | 459 | return(0); |
460 | if (!execute("ip addr add 127.0.0.1 dev %iface%", ifd, exec)) | 460 | if (!execute("ip addr add 127.0.0.1/8 dev %iface%", ifd, exec)) |
461 | return(0); | 461 | return(0); |
462 | #else | 462 | #else |
463 | if (!execute("ifconfig %iface% 127.0.0.1 up", ifd, exec)) { | 463 | if (!execute("ifconfig %iface% 127.0.0.1 up", ifd, exec)) { |
@@ -487,7 +487,7 @@ static int static_up(interface_defn_t *ifd, execfn *exec) | |||
487 | #ifdef CONFIG_FEATURE_IFUPDOWN_IP | 487 | #ifdef CONFIG_FEATURE_IFUPDOWN_IP |
488 | if (!execute("ip link set %iface% up", ifd, exec)) | 488 | if (!execute("ip link set %iface% up", ifd, exec)) |
489 | return(0); | 489 | return(0); |
490 | if (!execute("ip addr add %address%/%bnmask% dev %iface%", ifd, exec)) | 490 | if (!execute("ip addr add %address%/%bnmask% [[broadcast %broadcast%]] dev %iface%", ifd, exec)) |
491 | return(0); | 491 | return(0); |
492 | if (!execute("[[ ip route add default via %gateway% dev %iface% ]]", ifd, exec)) | 492 | if (!execute("[[ ip route add default via %gateway% dev %iface% ]]", ifd, exec)) |
493 | return(0); | 493 | return(0); |