Do not try to use -net user as a default when slirp disabled.
PATCH 1/1 Do not try to use -net user as a default when slirp disabled.
When CONFIG_SLIRP is not defined, we should not try to use -net user as a default.
Patch from Jeremy Fitzhardinge <[email protected]> (who is a Citrix staff member).
Signed-off-by Ian Jackson <[email protected]>
--- vl.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
vl.c +4 -3
@@ -8370,9 +8370,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++) {
Signature · 1 line
1.4.4.4
Anthony Liguori
AppliedQuoted 6 lines · Ian Jackson
When
CONFIG_SLIRPis not defined, we should not try to use -net user as a default.Patch from Jeremy Fitzhardinge <[email protected]> (who is a Citrix staff member).
Applied. Thanks.
Regards,
Anthony Liguori