Filter Driver Outline

This driver outline lists all of the main routines required for a Filter driver under RT-TCP/IP. remove #include "RtSamplefilter.h" and change RtndConfigFilter to RtndConfigurationFilter.

Example:  RtxTcpIp Filter functions

#include "drvutl.h"
#include "rtnapi.h"
// Force the export of RTNDPROC functions
#define FILTER_API __declspec ( dllexport )
FILTER_API 
FRAME_STATE
RtndReceiveFilter(void *ndptr,
   void *mptr,
   unsigned long framesize)
{
//Filter incoming frames
}
FILTER_API
int
RtndTransmitFilter(void *mptr)
{
//Filter outgoing frames
}
FILTER_API
int
RtndUpDownFilter( void *ndptr,
   unsigned short flags,
char *options)
{
//Receive notification of a change in interface state
}
FILTER_API
int
RtndIOCTLFilter(void *ndptr,
   int cmd,
   char *addr)
{
//Receive notification of a change in interface mode
}
FILTER_API
int
RtndConfigurationFilter(void *ndptr){
//Receive notification that the NIC driver is starting its receive and transmit
}
IntervalZero.com | Support | Give Feedback