poll UML guests after startup using eth9=mcast, as networking is loaded after console
This commit is contained in:
+3
-3
@@ -199,20 +199,20 @@ static bool del_iface(private_mconsole_t *this, char *guest)
|
|||||||
*/
|
*/
|
||||||
static bool wait_bootup(private_mconsole_t *this)
|
static bool wait_bootup(private_mconsole_t *this)
|
||||||
{
|
{
|
||||||
char *cmd, buf[128];
|
char buf[128];
|
||||||
int len, res;
|
int len, res;
|
||||||
|
|
||||||
cmd = "config con0";
|
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
len = sizeof(buf);
|
len = sizeof(buf);
|
||||||
res = request(this, cmd, buf, &len);
|
res = request(this, "config eth9=mcast", buf, &len);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
{
|
{
|
||||||
|
request(this, "remove eth9", buf, &len);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
if (this->idle)
|
if (this->idle)
|
||||||
|
|||||||
Reference in New Issue
Block a user