 |
Index for Section 9 |
|
 |
Alphabetical listing for A |
|
 |
Bottom of page |
|
ADD_RECV_PACKET(9r)
NAME
ADD_RECV_PACKET - Network: Increments the receive packet (block) and byte
count
SYNOPSIS
#include <io/dec/netif/lan_common.h>
void ADD_RECV_PACKET(
struct ifnet *ifp,
struct softc *sc_p,
int siz_v );
ARGUMENTS
ifp Specifies a pointer to the ifnet structure associated with this network
device.
sc_p
Specifies a pointer to the softc structure associated with this network
device.
The ADD_RECV_PACKET() routine uses the ctrblk alternate name to access
the ess_ctrblk member of the driver's softc structure.
siz_v
Specifies the total packet length.
DESCRIPTION
The ADD_RECV_PACKET() routine increments the following statistics in the
ess_ctrblk member of the device's ether_driver data structure:
· est_blokrcvd
· est_bytercvd
It also increments the if_ipackets member of the device's ifnet data
structure (the ifp argument).
NOTES
This interface is for use only by Ethernet device drivers.
CAUTIONS
The ADD_RECV_PACKET() routine requires that you define the following in
your softc structure:
#define ctrblk is_ed.ess_ctrblk
RETURN VALUES
None
FILES
<lan_common.h>
SEE ALSO
Routines: ADD_RECV_MPACKET(9r), ADD_XMIT_MPACKET(9r), ADD_XMIT_PACKET(9r)
 |
Index for Section 9 |
|
 |
Alphabetical listing for A |
|
 |
Top of page |
|