summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-11-25 18:49:30 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:34 -0600
commit2f2e98b754d241b67d8c7db5e49bdff83ea28354 (patch)
tree1342018a8e29fd3b027776e261732f6db70452cf /net.h
parente9ae8d9525c7c568d36e39318c649a23ec2056f8 (diff)
downloadqemu-2f2e98b754d241b67d8c7db5e49bdff83ea28354.tar.gz
qemu-2f2e98b754d241b67d8c7db5e49bdff83ea28354.tar.bz2
qemu-2f2e98b754d241b67d8c7db5e49bdff83ea28354.zip
net: remove VLANClientState members now in NetClientInfo
Add a NetClientInfo pointer to VLANClientState and use that for the typecode and function pointers. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.h')
-rw-r--r--net.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/net.h b/net.h
index 9185bcf794..497a7373fa 100644
--- a/net.h
+++ b/net.h
@@ -54,15 +54,7 @@ typedef struct NetClientInfo {
} NetClientInfo;
struct VLANClientState {
- net_client_type type;
- NetReceive *receive;
- NetReceive *receive_raw;
- NetReceiveIOV *receive_iov;
- /* Packets may still be sent if this returns zero. It's used to
- rate-limit the slirp code. */
- NetCanReceive *can_receive;
- NetCleanup *cleanup;
- LinkStatusChanged *link_status_changed;
+ NetClientInfo *info;
int link_down;
QTAILQ_ENTRY(VLANClientState) next;
struct VLANState *vlan;