summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:32 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:51 -0500
commite9c1ec12e30ef023e4a7e12563d84c4d6de20fcc (patch)
treea94c05aec0460d980654e0f05cb636a4064b89e8
parentd53f3ee301d8ab0756525ca10183d403d6ce09b0 (diff)
downloadqemu-e9c1ec12e30ef023e4a7e12563d84c4d6de20fcc.tar.gz
qemu-e9c1ec12e30ef023e4a7e12563d84c4d6de20fcc.tar.bz2
qemu-e9c1ec12e30ef023e4a7e12563d84c4d6de20fcc.zip
slirp: Basic VLAN client info_str
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net.c b/net.c
index 8c80b0b7c0..6d82d59c6e 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;
}