0

I want to manipulate a games roomlist, for filtering the maps. My idea was, to filter the incoming packets for new rooms.

I can't find anything about how to edit or block incoming packets on the fly with pcap.net in c#.

is this possible to do?

brickner
  • 6,595
  • 3
  • 41
  • 54
cyptus
  • 3,346
  • 3
  • 31
  • 52

2 Answers2

3

For packet editing/filtering you can try WinDivert. The API is C so you'd need to write your own c# binding.

(disclosure: WinDivert is my project.)

Basil
  • 1,001
  • 7
  • 9
2

If pcap.net is a wrapper for WinPcap, it is not possible - libpcap/WinPcap can't block incoming packets, or modify them before they reach the networking stack, it can only passively capture packets and inject them.