NL2FilterDriverSample

NL2FilterDriverSample provides a simple Filter Driver example for the Network Link Layer (NL2).

This sample manages multiple Receive Queues simultaneously. It inspects all the Ethernet frames received from those managed Receive Queues and drops any UDP packet with an odd-numbered destination port.

Building the Sample

Build the sample using the RTSSDebug or RTSSRelease configuration (to build NL2FilterDriverSample.rtdll).

Running the Sample

  1. Assign the NL2FilterDriverSample.rtdll filter driver to a Rx Queue of the target network interface card (NIC).
  2. Start the NL2 and network stack on the wRTOS system.
  3. Launch RtTcpipServer in UDP mode on port 9999 (odd number).
  4. Restart or launch RtTcpipServer on port 9998 (even number).
  5. From a separate machine on the network, run RtTcpipClient to send UDP packets to the wRTOS server.

Expected Results

Remarks

To maintain simplicity, this Filter Driver has the following limitations: