aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-02-03 12:44:59 +0000
committerEric Andersen <andersen@codepoet.org>2003-02-03 12:44:59 +0000
commit46c203a6cef9ce1cdd74fdc1183ccd2cf2dfe5bf (patch)
tree8dad3742c1956cbacc68f8bbcaf2eabae7f4da82
parent21110a0aa2bda7346bdd916bbc027dfa38ee7c12 (diff)
downloadbusybox-46c203a6cef9ce1cdd74fdc1183ccd2cf2dfe5bf.tar.gz
Fix a couple more ifupdown bugs
-rw-r--r--networking/ifupdown.c4
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)
#ifdef CONFIG_FEATURE_IFUPDOWN_IP
if (!execute("ip link set %iface% up", ifd, exec))
return(0);
- if (!execute("ip addr add 127.0.0.1 dev %iface%", ifd, exec))
+ if (!execute("ip addr add 127.0.0.1/8 dev %iface%", ifd, exec))
return(0);
#else
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)
#ifdef CONFIG_FEATURE_IFUPDOWN_IP
if (!execute("ip link set %iface% up", ifd, exec))
return(0);
- if (!execute("ip addr add %address%/%bnmask% dev %iface%", ifd, exec))
+ if (!execute("ip addr add %address%/%bnmask% [[broadcast %broadcast%]] dev %iface%", ifd, exec))
return(0);
if (!execute("[[ ip route add default via %gateway% dev %iface% ]]", ifd, exec))
return(0);