summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2003-07-30 08:22:53 +0000
committerEric Andersen2003-07-30 08:22:53 +0000
commit76097edc0ebdb1f8cb68e0f362ec5af42140345e (patch)
tree48d108c7e215cd342915a90c834860e336ce882a
parent3124a9ecee24769f395d3dc4179a5f0e9268b5c0 (diff)
downloadbusybox-76097edc0ebdb1f8cb68e0f362ec5af42140345e.zip
busybox-76097edc0ebdb1f8cb68e0f362ec5af42140345e.tar.gz
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.
-rw-r--r--networking/ifupdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index d685fc2..bae9f4e 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -435,8 +435,8 @@ static int v4tunnel_up(struct interface_defn_t *ifd, execfn *exec)
int result;
result = execute("ip tunnel add %iface% mode sit remote "
"%endpoint% [[local %local%]] [[ttl %ttl%]]", ifd, exec);
- result += execute("ip addr add %address%/%netmask% dev %iface% label %label%", ifd, exec);
result += execute("ip link set %iface% up", ifd, exec);
+ result += execute("ip addr add %address%/%netmask% dev %iface% label %label%", ifd, exec);
result += execute("[[ ip route add ::/0 via %gateway% ]]", ifd, exec);
return( result);
}