dev-network.c (2c96c379ac7a22424c25d65b73e81b860f902868) dev-network.c (f394b2e20d9a666fb194fb692179a0eeaca5daea)
1/*
2 * QEMU USB Net devices
3 *
4 * Copyright (c) 2006 Thomas Sailer
5 * Copyright (c) 2008 Andrzej Zaborowski
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 1320 unchanged lines hidden (view full) ---

1329 USBNetState *s = (USBNetState *) dev;
1330
1331 /* TODO: remove the nd_table[] entry */
1332 rndis_clear_responsequeue(s);
1333 qemu_del_nic(s->nic);
1334}
1335
1336static NetClientInfo net_usbnet_info = {
1/*
2 * QEMU USB Net devices
3 *
4 * Copyright (c) 2006 Thomas Sailer
5 * Copyright (c) 2008 Andrzej Zaborowski
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 1320 unchanged lines hidden (view full) ---

1329 USBNetState *s = (USBNetState *) dev;
1330
1331 /* TODO: remove the nd_table[] entry */
1332 rndis_clear_responsequeue(s);
1333 qemu_del_nic(s->nic);
1334}
1335
1336static NetClientInfo net_usbnet_info = {
1337 .type = NET_CLIENT_OPTIONS_KIND_NIC,
1337 .type = NET_CLIENT_DRIVER_NIC,
1338 .size = sizeof(NICState),
1339 .receive = usbnet_receive,
1340 .cleanup = usbnet_cleanup,
1341};
1342
1343static void usb_net_realize(USBDevice *dev, Error **errrp)
1344{
1345 USBNetState *s = USB_NET(dev);

--- 107 unchanged lines hidden ---
1338 .size = sizeof(NICState),
1339 .receive = usbnet_receive,
1340 .cleanup = usbnet_cleanup,
1341};
1342
1343static void usb_net_realize(USBDevice *dev, Error **errrp)
1344{
1345 USBNetState *s = USB_NET(dev);

--- 107 unchanged lines hidden ---