label's dont work in v4 tunnels, patch by Eric Spakman

This commit is contained in:
Glenn L McGrath 2003-08-29 07:47:52 +00:00
parent a6b7bdcf8c
commit 62b031fb82

View File

@ -436,7 +436,7 @@ static int v4tunnel_up(struct interface_defn_t *ifd, execfn *exec)
result = execute("ip tunnel add %iface% mode sit remote "
"%endpoint% [[local %local%]] [[ttl %ttl%]]", 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 addr add %address%/%netmask% dev %iface%", ifd, exec);
result += execute("[[ ip route add ::/0 via %gateway% ]]", ifd, exec);
return( result);
}