slirp: Reorder initialization
commitb8e8af38ee4a4d516e75c64d1c3fbcf9a81d00e4
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 8 May 2009 10:34:18 +0000 (8 12:34 +0200)
committerMark McLoughlin <markmc@redhat.com>
Tue, 9 Jun 2009 10:38:49 +0000 (9 11:38 +0100)
tree4031a1a28dc11f07fbf011f1d7531a462ed81334
parent10ae5a7a98f7c1d901fbb6658324e9c4c4fec8cf
slirp: Reorder initialization

This patch reorders the initialization of slirp itself as well as its
associated features smb and redirection. So far the first reference to
slirp triggered the initialization, independent of the actual -net user
option which may carry additional parameters. Now we save any request to
add a smb export or some redirections until the actual initialization of
the stack. This also allows to move a few parameters that were passed
via global variable into the argument list of net_slirp_init.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
net.c
slirp/libslirp.h
slirp/slirp.c