Index Index for
Section 9
Index Alphabetical
listing for A
Bottom of page Bottom of
page

ADD_XMIT_PACKET(9r)

NAME

ADD_XMIT_PACKET - Network: Increments the transmit packet (block) and byte count

SYNOPSIS

#include <io/dec/netif/lan_common.h> void ADD_XMIT_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_XMIT_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_XMIT_PACKET() routine increments the following statistics in the ess_ctrblk member of the device's ether_driver data structure: · est_bloksent · est_bytesent It also increments the if_opackets 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_XMIT_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_RECV_PACKET(9r), ADD_XMIT_MPACKET(9r)

Index Index for
Section 9
Index Alphabetical
listing for A
Top of page Top of
page