]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
lxc: avoid large stacks with veth creation
authorEric Blake <eblake@redhat.com>
Tue, 31 Aug 2010 22:04:46 +0000 (16:04 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 2 Sep 2010 21:48:24 +0000 (15:48 -0600)
commitf694036f2dffb7e5a709676168bd5b3e7197bcfc
tree42679a1a0c05fdaf13551a8cffaf1d11965dfa28
parent1504cc4f02610aa7760cdc4d74c59af60356f0c9
lxc: avoid large stacks with veth creation

* src/lxc/veth.h (vethCreate): Change prototype.
* src/lxc/veth.c (vethCreate): Always malloc veth2, and allocate
veth1 if needed.
(getFreeVethName): Adjust signature, and use virAsprintf.
* src/lxc/lxc_driver.c (lxcSetupInterfaces): Adjust caller.
src/lxc/lxc_driver.c
src/lxc/veth.c
src/lxc/veth.h