Intercepting packet, and handling data transfer #458
Unanswered
AlmightyLks
asked this question in
Q&A
Replies: 1 comment 1 reply
-
windivert driver is better suited for this than the npcap driver. That being said, there are registry entries that can be changed to make npcap cable of doing this, but they are only documented in npcap changelog. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Doing what the docs shows
Device_OnPacketArrival()
is called when packets arrive. This also counts for outbound packets.However, I wonder:
You can manipulate and call
device.SendPacket()
manually; Is that what you're supposed to do? Or would calling it within the evenhandler cause it to send the same data twice? Especially, as not calling it doesn't interfere with the network traffic...The reason I am wondering about this, is that NetStalker does exactly that. Following the same logic as NetStalker, that part of the code is responsible for rate-limitting. Meaning, when an outbound-packet comes in, check if its within the rate-limit, then send. Otherwise, don't call
device.SendPacket()
.Beta Was this translation helpful? Give feedback.
All reactions