qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 41/41] slirp: Basic VLAN client info_str


From: Jan Kiszka
Subject: [Qemu-devel] [PATCH 41/41] slirp: Basic VLAN client info_str
Date: Wed, 24 Jun 2009 14:42:32 +0200
User-agent: StGIT/0.14.3

Signed-off-by: Jan Kiszka <address@hidden>
---

 net.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net.c b/net.c
index 573179e..fb5fc24 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;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]