pcap.net block or edit packets
Question
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?
Solution
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.
OTHER TIPS
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.)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow