libpnet / libpnet

Cross-platform, low level networking using the Rust programming language.
Apache License 2.0
2.28k stars 310 forks source link

Add npcap backend #148

Open mrmonday opened 8 years ago

mrmonday commented 8 years ago

There should be an npcap backend so that loopback traffic can be captured on Windows.

mattlknight commented 5 years ago

@mrmonday Late to the game, I will volunteer to do this work, already in progress. :)

I have some questions to the maintainers/user-base though.

  1. How do we want to support npcap's feature of backwards compatibility with winpcap?

    • My proposal would be to use separate feature flags at the libpnet caller level. Such as feature "winpcap" or "npcap".
  2. If we do support backwards compatiblity, should we replace winpcap code entirely with npcap, due to the ability for npcap to support both.

    • I would think this makes sense, especially if we use convenient feature flags.
  3. How do we want to handle the condition(s) where the caller wants to leverage features of npcap, that the driver doesn't support? (This would be due to features being checked/unchecked during npcap installation.)