mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
net: re-name vc->fd_read() to vc->receive()
VLANClientState's fd_read() handler doesn't read from file descriptors, it adds a buffer to the client's receive queue. Re-name the handlers to make things a little less confusing. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
parent
463af5349a
commit
cda9046ba7
20 changed files with 57 additions and 56 deletions
|
@ -1076,7 +1076,7 @@ static int pcnet_can_receive(void *opaque)
|
|||
|
||||
#define MIN_BUF_SIZE 60
|
||||
|
||||
static void pcnet_receive(void *opaque, const uint8_t *buf, int size)
|
||||
static void pcnet_receive(void *opaque, const uint8_t *buf, size_t size)
|
||||
{
|
||||
PCNetState *s = opaque;
|
||||
int is_padr = 0, is_bcast = 0, is_ladr = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue