From 1996d8043fadf961222276a5fdc2bea433f20493 Mon Sep 17 00:00:00 2001 From: andersen Date: Mon, 3 Feb 2003 12:44:59 +0000 Subject: Fix a couple more ifupdown bugs git-svn-id: svn://busybox.net/trunk/busybox@6514 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- networking/ifupdown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking') 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); -- cgit v1.2.3-55-g6feb