fixed tap device setup (requires open/close for each call)

using more meaningful names for tap devices
This commit is contained in:
Martin Willi
2007-07-26 07:39:49 +00:00
parent 53b0f3c3b3
commit 369a17c218
5 changed files with 66 additions and 56 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ static iface_t* create_iface(private_guest_t *this, char *name)
iterator = this->ifaces->create_iterator(this->ifaces, TRUE);
while (iterator->iterate(iterator, (void**)&iface))
{
if (streq(name, iface->get_guest(iface)))
if (streq(name, iface->get_guestif(iface)))
{
DBG1("guest '%s' already has an interface '%s'", this->name, name);
iterator->destroy(iterator);
@@ -88,7 +88,7 @@ static iface_t* create_iface(private_guest_t *this, char *name)
}
iterator->destroy(iterator);
iface = iface_create(name, this->mconsole);
iface = iface_create(this->name, name, this->mconsole);
if (iface)
{
this->ifaces->insert_last(this->ifaces, iface);