mirror of https://github.com/xemu-project/xemu.git
slirp: Basic VLAN client info_str
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f13b572cb3
commit
fc57bc5780
3
net.c
3
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,
|
s->vc = qemu_new_vlan_client(vlan, model, name, NULL, slirp_receive, NULL,
|
||||||
net_slirp_cleanup, s);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue