提交 f441b28b 编写于 作者: A aliguori

Do not try to use -net user as a default when slirp disabled (Jeremy Fitzhardinge)

When CONFIG_SLIRP is not defined, we should not try to use
-net user as a default.

Patch from Jeremy Fitzhardinge <jeremy@goop.org> (who is a Citrix
staff member).
Signed-off-by: NIan Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5092 c046a42c-6fe2-441c-8c8c-71466251a162
上级 eda52953
......@@ -8978,9 +8978,10 @@ int main(int argc, char **argv)
/* init network clients */
if (nb_net_clients == 0) {
/* if no clients, we use a default config */
net_clients[0] = "nic";
net_clients[1] = "user";
nb_net_clients = 2;
net_clients[nb_net_clients++] = "nic";
#ifdef CONFIG_SLIRP
net_clients[nb_net_clients++] = "user";
#endif
}
for(i = 0;i < nb_net_clients; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册