poll UML guests after startup using eth9=mcast, as networking is loaded after console
authorMartin Willi <martin@strongswan.org>
Wed, 14 May 2008 11:48:00 +0000 (11:48 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 14 May 2008 11:48:00 +0000 (11:48 -0000)
src/dumm/mconsole.c

index 6d6d900..01fdbb4 100644 (file)
@@ -199,20 +199,20 @@ static bool del_iface(private_mconsole_t *this, char *guest)
  */
 static bool wait_bootup(private_mconsole_t *this)
 {
-       char *cmd, buf[128];
+       char buf[128];
        int len, res;
        
-       cmd = "config con0";
        while (TRUE)
        {
                len = sizeof(buf);
-               res = request(this, cmd, buf, &len);
+               res = request(this, "config eth9=mcast", buf, &len);
                if (res < 0)
                {
                        return FALSE;
                }
                if (res == 0)
                {
+                       request(this, "remove eth9", buf, &len);
                        return TRUE;
                }
                if (this->idle)