From: Zhi Yong Wu <wu...@linux.vnet.ibm.com> Signed-off-by: Zhi Yong Wu <wu...@linux.vnet.ibm.com> --- net/dump.c | 8 ++++++-- net/dump.h | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/net/dump.c b/net/dump.c index 0f191d3..16e6efc 100644 --- a/net/dump.c +++ b/net/dump.c @@ -145,13 +145,17 @@ static int net_dump_init(NetClientState *peer, const char *device, return 0; } -int net_init_dump(QemuOpts *opts, Monitor *mon, const char *name, - NetClientState *peer) +int net_init_dump(NETDevice *net_dev) { int len; const char *file; char def_file[128]; + QemuOpts *opts = net_dev->opts; + //Monitor *mon = net_dev->mon; + char *name = g_strdup(net_dev->name); + NetClientState *peer = net_dev->peer; + assert(peer); file = qemu_opt_get(opts, "file"); diff --git a/net/dump.h b/net/dump.h index df22afe..4bccdcf 100644 --- a/net/dump.h +++ b/net/dump.h @@ -27,7 +27,6 @@ #include "net.h" #include "qemu-common.h" -int net_init_dump(QemuOpts *opts, Monitor *mon, - const char *name, NetClientState *peer); +int net_init_dump(NETDevice *net_dev); #endif /* QEMU_NET_DUMP_H */ -- 1.7.6