wiresock / ndisapi

Windows Packet Filter library for network packet interception and manipulation, suitable for custom firewall, VPN and traffic analysis applications.
https://www.ntkernel.com/windows-packet-filter/
MIT License
289 stars 78 forks source link

API question #9

Closed mehecip closed 3 years ago

mehecip commented 3 years ago

Hi,

this is not an issue per say, more of a question.

If after calling:

BOOL CNdisApi::SendPacketsToMstcpUnsorted ( PINTERMEDIATE_BUFFER* Packets, DWORD dwPacketsNum, PDWORD pdwPacketsSuccess );

dwPacketsNum would be different than pdwPacketsSuccess, what could be the causes for the "dropped" packets?

https://github.com/ntkernelcom/ndisapi/blob/c20f80194b0425e4761d0b0847e0bfef781dacb5/examples/cpp/common/ndisapi/fastio_packet_filter.h#L479

Thanks.

PS: I'm a big fan of the API and examples.

wiresock commented 3 years ago

Hi,

These packets will be silently dropped. However, the chance for this is minimal. It may happen if:

Regards, Vadim

mehecip commented 3 years ago

Thanks for the quick answer.