qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v3 12/12] net: Remove info_str from VLANClientState,


From: Miguel Di Ciurcio Filho
Subject: [Qemu-devel] [PATCH v3 12/12] net: Remove info_str from VLANClientState, not needed anymore
Date: Thu, 15 Apr 2010 11:07:07 -0300

Signed-off-by: Miguel Di Ciurcio Filho <address@hidden>
---
 net.c |    9 ---------
 net.h |    2 --
 2 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/net.c b/net.c
index 46e8873..5dfe24d 100644
--- a/net.c
+++ b/net.c
@@ -168,15 +168,6 @@ int parse_host_port(struct sockaddr_in *saddr, const char 
*str)
     return 0;
 }
 
-void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6])
-{
-    snprintf(vc->info_str, sizeof(vc->info_str),
-             "model=%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x",
-             vc->model,
-             macaddr[0], macaddr[1], macaddr[2],
-             macaddr[3], macaddr[4], macaddr[5]);
-}
-
 void qemu_format_nic_info_dict(VLANClientState *vc, uint8_t macaddr[6])
 {
     vc->info_dict = qdict_new();
diff --git a/net.h b/net.h
index 058420e..243bc3c 100644
--- a/net.h
+++ b/net.h
@@ -65,7 +65,6 @@ struct VLANClientState {
     NetQueue *send_queue;
     char *model;
     char *name;
-    char info_str[256];
     QDict *info_dict;
     unsigned receive_disabled : 1;
 };
@@ -111,7 +110,6 @@ ssize_t qemu_send_packet_async(VLANClientState *vc, const 
uint8_t *buf,
                                int size, NetPacketSent *sent_cb);
 void qemu_purge_queued_packets(VLANClientState *vc);
 void qemu_flush_queued_packets(VLANClientState *vc);
-void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]);
 void qemu_format_nic_info_dict(VLANClientState *vc, uint8_t macaddr[6]);
 void qemu_macaddr_default_if_unset(MACAddr *macaddr);
 int qemu_show_nic_models(const char *arg, const char *const *models);
-- 
1.7.0.4





reply via email to

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