From e9c1ec12e30ef023e4a7e12563d84c4d6de20fcc Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:32 +0200 Subject: [PATCH] slirp: Basic VLAN client info_str Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net.c b/net.c index 8c80b0b..6d82d59 100644 --- a/net.c +++ b/net.c @@ -903,7 +903,8 @@ static int net_slirp_init(Monitor *mon, VLANState *vlan, const char *model, s->vc = qemu_new_vlan_client(vlan, model, name, NULL, slirp_receive, NULL, net_slirp_cleanup, s); - s->vc->info_str[0] = '\0'; + snprintf(s->vc->info_str, sizeof(s->vc->info_str), + "net=%s, restricted=%c", inet_ntoa(net), restricted ? 'y' : 'n'); return 0; } -- 2.7.4