Statistics
| Branch: | Revision:

root / net / hub.h @ ef5b2344

History | View | Annotate | Download (823 Bytes)

1 f6c874e3 Stefan Hajnoczi
/*
2 f6c874e3 Stefan Hajnoczi
 * Hub net client
3 f6c874e3 Stefan Hajnoczi
 *
4 f6c874e3 Stefan Hajnoczi
 * Copyright IBM, Corp. 2012
5 f6c874e3 Stefan Hajnoczi
 *
6 f6c874e3 Stefan Hajnoczi
 * Authors:
7 f6c874e3 Stefan Hajnoczi
 *  Stefan Hajnoczi   <stefanha@linux.vnet.ibm.com>
8 f6c874e3 Stefan Hajnoczi
 *  Zhi Yong Wu       <wuzhy@linux.vnet.ibm.com>
9 f6c874e3 Stefan Hajnoczi
 *
10 f6c874e3 Stefan Hajnoczi
 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
11 f6c874e3 Stefan Hajnoczi
 * See the COPYING.LIB file in the top-level directory.
12 f6c874e3 Stefan Hajnoczi
 *
13 f6c874e3 Stefan Hajnoczi
 */
14 f6c874e3 Stefan Hajnoczi
15 f6c874e3 Stefan Hajnoczi
#ifndef NET_HUB_H
16 f6c874e3 Stefan Hajnoczi
#define NET_HUB_H
17 f6c874e3 Stefan Hajnoczi
18 f6c874e3 Stefan Hajnoczi
#include "qemu-common.h"
19 f6c874e3 Stefan Hajnoczi
20 f6c874e3 Stefan Hajnoczi
int net_init_hubport(const NetClientOptions *opts, const char *name,
21 4e68f7a0 Stefan Hajnoczi
                     NetClientState *peer);
22 4e68f7a0 Stefan Hajnoczi
NetClientState *net_hub_add_port(int hub_id, const char *name);
23 4e68f7a0 Stefan Hajnoczi
NetClientState *net_hub_find_client_by_name(int hub_id, const char *name);
24 f6c874e3 Stefan Hajnoczi
void net_hub_info(Monitor *mon);
25 4e68f7a0 Stefan Hajnoczi
int net_hub_id_for_client(NetClientState *nc, int *id);
26 81017645 Stefan Hajnoczi
void net_hub_check_clients(void);
27 4e68f7a0 Stefan Hajnoczi
NetClientState *net_hub_port_find(int hub_id);
28 f6c874e3 Stefan Hajnoczi
29 f6c874e3 Stefan Hajnoczi
#endif /* NET_HUB_H */