etherRead.c File Reference

Implements the functions: etherRead. More...

#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>

Include dependency graph for etherRead.c:

Go to the source code of this file.

Functions

devcall etherRead (device *pdev, void *buf, uint len)
 Read a packet from the ethernet device.


Detailed Description

Implements the functions: etherRead.

Id
etherRead.c 1539 2008-09-17 04:56:22Z agember

Definition in file etherRead.c.


Function Documentation

devcall etherRead ( device *  pdev,
void *  buf,
uint  len 
)

Read a packet from the ethernet device.

Parameters:
pdev pointer to ethernet device
buf buffer for read
len size of the buffer
Returns:
number of bytes read

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().

Here is the call graph for this function:


Generated on Fri Sep 19 13:40:29 2008 for Embedded XINU by  doxygen 1.5.6