Revision e3f5ec2b hw/ne2000.c
b/hw/ne2000.c | ||
---|---|---|
213 | 213 |
return 0; |
214 | 214 |
} |
215 | 215 |
|
216 |
static int ne2000_can_receive(void *opaque)
|
|
216 |
static int ne2000_can_receive(VLANClientState *vc)
|
|
217 | 217 |
{ |
218 |
NE2000State *s = opaque; |
|
218 |
NE2000State *s = vc->opaque;
|
|
219 | 219 |
|
220 | 220 |
if (s->cmd & E8390_STOP) |
221 | 221 |
return 1; |
... | ... | |
224 | 224 |
|
225 | 225 |
#define MIN_BUF_SIZE 60 |
226 | 226 |
|
227 |
static void ne2000_receive(void *opaque, const uint8_t *buf, size_t size)
|
|
227 |
static void ne2000_receive(VLANClientState *vc, const uint8_t *buf, size_t size)
|
|
228 | 228 |
{ |
229 |
NE2000State *s = opaque; |
|
229 |
NE2000State *s = vc->opaque;
|
|
230 | 230 |
uint8_t *p; |
231 | 231 |
unsigned int total_len, next, avail, len, index, mcast_idx; |
232 | 232 |
uint8_t buf1[60]; |
Also available in: Unified diff