]> git.proxmox.com Git - mirror_qemu.git/blame - net/hub.h
hub: Check that hubs are configured correctly
[mirror_qemu.git] / net / hub.h
CommitLineData
f6c874e3
SH
1/*
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
20int net_init_hubport(const NetClientOptions *opts, const char *name,
d33d93b2 21 VLANClientState *peer);
f6c874e3 22VLANClientState *net_hub_add_port(int hub_id, const char *name);
90d87a33 23VLANClientState *net_hub_find_client_by_name(int hub_id, const char *name);
f6c874e3
SH
24void net_hub_info(Monitor *mon);
25int net_hub_id_for_client(VLANClientState *nc, int *id);
81017645 26void net_hub_check_clients(void);
f6c874e3
SH
27
28#endif /* NET_HUB_H */