VxWorks Reference Manual : Libraries

wdbEndPktDrv

NAME

wdbEndPktDrv - END based packet driver for lightweight UDP/IP

ROUTINES

DESCRIPTION

OVERVIEW

This is an END based driver for the WDB system. It uses the MUX and END based drivers to allow for interaction between the target and target server.

USAGE

The driver is typically only called only from usrWdb.c. The only directly callable routine in this module is wdbEndPktDevInit( ). Your configAll.h file will have to be modified so that WDB_COMM_TYPE is defined as WDB_COMM_END.

DATA BUFFERING

The drivers only need to handle one input packet at a time because the WDB protocol only supports one outstanding host-request at a time. If multiple input packets arrive, the driver can simply drop them. The driver then loans the input buffer to the WDB agent, and the agent invokes a driver callback when it is done with the buffer.

For output, the agent will pass the driver a chain of mbufs, which the driver must send as a packet. When it is done with the mbufs, it calls wdbMbufChainFree( ) to free them. The header file wdbMbuflib.h provides the calls for allocating, freeing, and initializing mbufs for use with the lightweight UDP/IP interpreter. It ultimatly makes calls to the routines wdbMbufAlloc and wdbMbufFree, which are provided in source code in usrWdb.c.

SEE ALSO

wdbEndPktDrv