xref: /qemu/net/hub.h (revision b4983c57)
1f6c874e3SStefan Hajnoczi /*
2f6c874e3SStefan Hajnoczi  * Hub net client
3f6c874e3SStefan Hajnoczi  *
4f6c874e3SStefan Hajnoczi  * Copyright IBM, Corp. 2012
5f6c874e3SStefan Hajnoczi  *
6f6c874e3SStefan Hajnoczi  * Authors:
7f6c874e3SStefan Hajnoczi  *  Stefan Hajnoczi   <stefanha@linux.vnet.ibm.com>
8f6c874e3SStefan Hajnoczi  *  Zhi Yong Wu       <wuzhy@linux.vnet.ibm.com>
9f6c874e3SStefan Hajnoczi  *
10f6c874e3SStefan Hajnoczi  * This work is licensed under the terms of the GNU LGPL, version 2 or later.
11f6c874e3SStefan Hajnoczi  * See the COPYING.LIB file in the top-level directory.
12f6c874e3SStefan Hajnoczi  *
13f6c874e3SStefan Hajnoczi  */
14f6c874e3SStefan Hajnoczi 
15f6c874e3SStefan Hajnoczi #ifndef NET_HUB_H
16f6c874e3SStefan Hajnoczi #define NET_HUB_H
17f6c874e3SStefan Hajnoczi 
18*18d65d22SThomas Huth NetClientState *net_hub_add_port(int hub_id, const char *name,
19*18d65d22SThomas Huth                                  NetClientState *hubpeer);
20f6c874e3SStefan Hajnoczi void net_hub_info(Monitor *mon);
2181017645SStefan Hajnoczi void net_hub_check_clients(void);
22199ee608SLuigi Rizzo bool net_hub_flush(NetClientState *nc);
23f6c874e3SStefan Hajnoczi 
24f6c874e3SStefan Hajnoczi #endif /* NET_HUB_H */
25