NDIS IM Redirection Driver

Tech-Archive recommends: Fix windows errors by optimizing your registry




I've made an NDIS IM redirection driver that can change packets destined
for one host to go to a different host. I have a problem, however, if
the packet to be sent needs to be redirected through a different nic.
(For instance, the packet is originally sent to a ppp adapter, but then
the IM driver redirects it to a local lan address, however it continues
through this original ppp interface). I've attempted to send the packet
back up the stack by sending a NdisMIndicateReceivePacket request to the
upper protocol driver, hoping that the packet would later be rerouted by
the upper tcpip protocol. This, however, fails miserably for me,
resulting in a BSOD IRQL not <=, even though I'm calling from a IRQL <=
DISPATCH level. Anyone have experience with something similar, or have
some sample code that might help?

Thanks,
Jason



--
JasonBorden79
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

.



Relevant Pages

  • Question about USB ISO IN transfer
    ... I set the flag USBD_SHORT_TRANSFER_OK to tell the USB ... host driver that a short transfer is supposed to be ok, ... the CPU is very busy when receiving isochronous data (packet size ...
    (microsoft.public.development.device.drivers)
  • Re: bulkusb.sys & zero-length packet
    ... There is no requirement that after sending full-sized packets the host ... should must a short one or zero-length. ... I'm trying to use bulkusb as device driver. ... send this packet automatically - that task delivered to device driver. ...
    (microsoft.public.win32.programmer.kernel)
  • sending/forwarding ip packets in kernel mode
    ... when creating an ip packet it is possible that the packet is larger than ... when forwarding a received packet to another host, ... What I want to do is to use the tcp/ip driver in the system to take care of ... when I create a packet larger than MTU I pass it to tcp/ip and it will ...
    (microsoft.public.development.device.drivers)
  • Re: Bridging and divert
    ... Divert I think is same as redirection. ... the revert rule of an a redirection will never apply. ... the IP packet is modified OK, but the Ethernet frame that encl;ose ...
    (freebsd-net)
  • Re: Firewall redirect doesnt work any more...
    ... then you accept it to the IP stack ... It does require that ipfw see the packet twice, ... ipfw in the IP stack and go direct to the redirection. ...
    (freebsd-net)