]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix allocation of veth's to not skip an index
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 7 Jun 2011 13:26:48 +0000 (14:26 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 15 Jun 2011 09:56:08 +0000 (10:56 +0100)
commitb4728dd43e4692ffb0c657f0c8f22272ffe935be
treedbc845054345426bc0a2d62bec63368baf8f9f20
parentc3068d4d2381146ed46051ad636a928edea5c602
Fix allocation of veth's to not skip an index

The algorithm for autoassigning vethXXX devices, was always
skipping over the starting dev index when finding a free
name for the guest device. This should only be done if the host
device was autoallocated.

* src/lxc/veth.c: Don't skip over veth indexes
src/lxc/veth.c