projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d53f3ee
)
slirp: Basic VLAN client info_str
author
Jan Kiszka
<jan.kiszka@siemens.com>
Wed, 24 Jun 2009 12:42:32 +0000
(14:42 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 29 Jun 2009 13:52:51 +0000
(08:52 -0500)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index
8c80b0b
..
6d82d59
100644
(file)
--- 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;
}