Commit fc57bc57804807925b0f9a063ce9367318d013c3
Committed by
Anthony Liguori
1 parent
f13b572c
slirp: Basic VLAN client info_str
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
2 additions
and
1 deletions
net.c
... | ... | @@ -903,7 +903,8 @@ static int net_slirp_init(Monitor *mon, VLANState *vlan, const char *model, |
903 | 903 | |
904 | 904 | s->vc = qemu_new_vlan_client(vlan, model, name, NULL, slirp_receive, NULL, |
905 | 905 | net_slirp_cleanup, s); |
906 | - s->vc->info_str[0] = '\0'; | |
906 | + snprintf(s->vc->info_str, sizeof(s->vc->info_str), | |
907 | + "net=%s, restricted=%c", inet_ntoa(net), restricted ? 'y' : 'n'); | |
907 | 908 | return 0; |
908 | 909 | } |
909 | 910 | ... | ... |