#include <stddef.h>
#include <device.h>
#include <ether.h>
#include <string.h>
#include <interrupt.h>
#include <bufpool.h>
#include <stdlib.h>
#include <network.h>
#include <vlan.h>

Go to the source code of this file.
Functions | |
| devcall | etherRead (device *pdev, void *buf, uint len) |
| Read a packet from the ethernet device. | |
Definition in file etherRead.c.
Read a packet from the ethernet device.
| pdev | pointer to ethernet device | |
| buf | buffer for read | |
| len | size of the buffer |
Definition at line 26 of file etherRead.c.
References buffree(), disable, ETH_CRC_LEN, ETH_HEADER_LEN, ETH_IBLEN, ETH_TYPE_VLAN, memcpy(), NULL, restore, SYSERR, and wait().

1.5.6