[BusyBox-cvs] busybox/networking ifupdown.c,1.19,1.20

Erik Andersen andersen at codepoet.org
Mon Feb 3 12:45:03 UTC 2003


Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv11529

Modified Files:
	ifupdown.c 
Log Message:
Fix a couple more ifupdown bugs


Index: ifupdown.c
===================================================================
RCS file: /var/cvs/busybox/networking/ifupdown.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- ifupdown.c	27 Jan 2003 17:41:19 -0000	1.19
+++ ifupdown.c	3 Feb 2003 12:44:59 -0000	1.20
@@ -457,7 +457,7 @@
 #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 @@
 #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);




More information about the busybox-cvs mailing list