How to modify net buffer lists?

I am converting an NDIS5 IM to an NDIS6 LWF. This filter, having detected a UDP packet of interest from the lower layer needs to perform one of the following:

  1. Copy the packet, manipulate the destination and send it back to the lower layer for transmission or
  2. As in 1) but do not send the packet to the higher layer

I would appreciate an overview of the NBL related functions I need to call to achieve this. TIA

Try ndis filter sample in new wdk : 7600.16385.1\src\network\ndis\filter

S.

Thanks Skaramush. I’ve examined that sample and others and solved my first problem but I can’t find an example of my second problem - I’ll repost that as a separate question.