aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-07-30 08:22:53 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-07-30 08:22:53 +0000
commit5535e516ce0bdefc05634a95670e16456abdd187 (patch)
tree48d108c7e215cd342915a90c834860e336ce882a /networking
parent3958628beec198995aac17557df679fe1b39eabe (diff)
downloadbusybox-w32-5535e516ce0bdefc05634a95670e16456abdd187.tar.gz
busybox-w32-5535e516ce0bdefc05634a95670e16456abdd187.tar.bz2
busybox-w32-5535e516ce0bdefc05634a95670e16456abdd187.zip
Eric Spakman writes:
The recent changes in ifupdown where all calls to 'ip link set' and 'ip addr set' are swapped give some problems with v4tunnels. For plain ipv4 and ipv6 interfaces it works correct, other methods not tried. The patch below change the behaviour back for v4tunnels only. Without the patch the following errors are shown: RTNETLINK answers: Network is down RTNETLINK answers: No route to host and the tunnel is not fully brought up With this patch all works as expected. git-svn-id: svn://busybox.net/trunk/busybox@7138 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index d685fc209..bae9f4ea4 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -435,8 +435,8 @@ static int v4tunnel_up(struct interface_defn_t *ifd, execfn *exec)
435 int result; 435 int result;
436 result = execute("ip tunnel add %iface% mode sit remote " 436 result = execute("ip tunnel add %iface% mode sit remote "
437 "%endpoint% [[local %local%]] [[ttl %ttl%]]", ifd, exec); 437 "%endpoint% [[local %local%]] [[ttl %ttl%]]", ifd, exec);
438 result += execute("ip addr add %address%/%netmask% dev %iface% label %label%", ifd, exec);
439 result += execute("ip link set %iface% up", ifd, exec); 438 result += execute("ip link set %iface% up", ifd, exec);
439 result += execute("ip addr add %address%/%netmask% dev %iface% label %label%", ifd, exec);
440 result += execute("[[ ip route add ::/0 via %gateway% ]]", ifd, exec); 440 result += execute("[[ ip route add ::/0 via %gateway% ]]", ifd, exec);
441 return( result); 441 return( result);
442} 442}