 |
Index for Section 9 |
|
 |
Alphabetical listing for A |
|
 |
Bottom of page |
|
ADD_RECV_MPACKET(9r)
NAME
ADD_RECV_MPACKET - Network: Increments the multicast receive packet (block)
and byte count
SYNOPSIS
#include <io/dec/netif/lan_common.h>
void ADD_RECV_MPACKET(
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_MPACKET() 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_MPACKET() routine increments the following statistics in the
ess_ctrblk member of the network device's ether_driver structure:
· est_mblokrcvd
· est_mbytercvd
NOTES
The ADD_RECV_MPACKET() routine is a convenience interface that Ethernet
drivers typically use in the driver's receive interrupt interface. It saves
Ethernet drivers the coding required to increment the multicast packet
(block) and byte count.
CAUTIONS
The ADD_RECV_MPACKET() routine requires that you define the following in
your softc structure:
#define ctrblk is_ed.ess_ctrblk
RETURN VALUES
None
FILES
<lan_common.h>
<mbuf.h>
SEE ALSO
Routines: ADD_RECV_PACKET(9r), ADD_XMIT_MPACKET(9r), ADD_XMIT_PACKET(9r)
 |
Index for Section 9 |
|
 |
Alphabetical listing for A |
|
 |
Top of page |
|