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 | e9c1ec12e30ef023e4a7e12563d84c4d6de20fcc (patch) | |
tree | a94c05aec0460d980654e0f05cb636a4064b89e8 | |
parent | d53f3ee301d8ab0756525ca10183d403d6ce09b0 (diff) | |
download | qemu-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.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; } |