slirp: Enable multi-instance support for the smb service
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 24 Jun 2009 12:42:31 +0000 (14:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jun 2009 13:52:50 +0000 (08:52 -0500)
commit0df216274a4f8d34cbc062046340555e16ea259a
tree901219891f4dbf161b347c44f788b77d4d74a697
parent99818b80a4e95fed71afbf551c5e31d7a5b89d3e
slirp: Enable multi-instance support for the smb service

Push the smb state, smb_dir, into SlirpState and construct it in a way
that allows multiple smb instances (one per slirp stack). Remove the smb
directory on slirp cleanup instead of qemu termination. As VLAN clients
are also cleaned up on process termination, no feature is lost.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c