[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT fc57bc5] slirp: Basic VLAN client info_str
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT fc57bc5] slirp: Basic VLAN client info_str |
Date: |
Tue, 30 Jun 2009 00:57:34 -0000 |
From: Jan Kiszka <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/net.c b/net.c
index 8c80b0b..6d82d59 100644
--- 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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT fc57bc5] slirp: Basic VLAN client info_str,
Anthony Liguori <=