blob: 6a16f0487a1f5a6f6d4f770e3e117b35c6a18103 [file] [log] [blame]
Stefan Hajnoczif6c874e2012-07-24 16:35:04 +01001/*
2 * Hub net client
3 *
4 * Copyright IBM, Corp. 2012
5 *
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
8 * Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
9 *
10 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
11 * See the COPYING.LIB file in the top-level directory.
12 *
13 */
14
15#ifndef NET_HUB_H
16#define NET_HUB_H
17
18#include "qemu-common.h"
19
Thomas Huth18d65d22018-01-15 20:50:55 +010020NetClientState *net_hub_add_port(int hub_id, const char *name,
21 NetClientState *hubpeer);
Stefan Hajnoczi4e68f7a2012-07-24 16:35:13 +010022NetClientState *net_hub_find_client_by_name(int hub_id, const char *name);
Stefan Hajnoczif6c874e2012-07-24 16:35:04 +010023void net_hub_info(Monitor *mon);
Stefan Hajnoczi81017642012-07-24 16:35:07 +010024void net_hub_check_clients(void);
Luigi Rizzo199ee602013-02-05 17:53:31 +010025bool net_hub_flush(NetClientState *nc);
Stefan Hajnoczif6c874e2012-07-24 16:35:04 +010026
27#endif /* NET_HUB_H */