diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:32 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:51 -0500 |
commit | fc57bc57804807925b0f9a063ce9367318d013c3 (patch) | |
tree | a94c05aec0460d980654e0f05cb636a4064b89e8 /net.c | |
parent | f13b572cb38ec8c74a0670b3554d48e7cbf20b4b (diff) |
slirp: Basic VLAN client info_str
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |