Revision e3f5ec2b hw/etraxfs_eth.c

b/hw/etraxfs_eth.c
496 496
	return match;
497 497
}
498 498

  
499
static int eth_can_receive(void *opaque)
499
static int eth_can_receive(VLANClientState *vc)
500 500
{
501 501
	return 1;
502 502
}
503 503

  
504
static void eth_receive(void *opaque, const uint8_t *buf, size_t size)
504
static void eth_receive(VLANClientState *vc, const uint8_t *buf, size_t size)
505 505
{
506 506
	unsigned char sa_bcast[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
507
	struct fs_eth *eth = opaque;
507
	struct fs_eth *eth = vc->opaque;
508 508
	int use_ma0 = eth->regs[RW_REC_CTRL] & 1;
509 509
	int use_ma1 = eth->regs[RW_REC_CTRL] & 2;
510 510
	int r_bcast = eth->regs[RW_REC_CTRL] & 8;

Also available in: Unified diff