Re: Re: Modifying the WinpkFilter C# Packet filter code question

Home Forums Discussions Support Modifying the WinpkFilter C# Packet filter code question Re: Re: Modifying the WinpkFilter C# Packet filter code question

#7180
stsf
Participant

    Figured the problem out, replying here if anyone encountered the same thing.

    Instead of using the PacketFilter project, I should have used the passthrough project – which looks rather similar – but has some key differences:

    1. The dwFlags loaded in the new adapter mode
    2. The sendPacketToAdapter and sendPacketToMstcp function calls at the end of the loop when processing an individual packet – that’s what I was looking for. I ended up changing “WriteToConsole” to test the packet, and if it failed – i just did not call the functions above.

    Thanks again – you have a great product