Can TDI filter driver inject packet to upper layer?

Home Forums Discussions General Discussion Can TDI filter driver inject packet to upper layer?

This topic contains 4 replies, has 2 voices, and was last updated by  Taras 13 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4857

    qlw
    Participant

    Hi all,

    I am new to NT driver development, I want to develop a firewall
    travesal program. The program requires:

    (1) Drop packet to some addr and port
    (2) Inject packet to upper layer (TCP)

    I am surveying existing techniques, and read “firewall for 9x…”
    by Vadim V.Smirnov, and think TDI filter driver is suitable for me.

    I am sure (2) can be done in TDI driver, but can anyone tell me
    that (1) can also be fullfilled by TDI driver? ❓

    Thanks for your attention!

    Ling

    #5583

    qlw
    Participant

    BTW, please answer in English, I can not read Russia 🙂

    Thanks

    #5584

    Taras
    Participant

    (1) and (2) can be done

    1) When you are hijacking ClientEventReceive, ClientEventChainedReceive you should analize content and return STATUS_DATA_NOT_ACCEPTED for rejecting data.

    #5585

    qlw
    Participant

    Tara, Many thanks.

    BTW, can you explain how to do (2) with TDI driver?

    #5586

    Taras
    Participant

    Call client register callback function ClientEventReceive or ClientEventChainedReceive

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.