Reply To: Reading packet information example in VB

Home Forums Discussions Support Portal Reading packet information example in VB Reply To: Reading packet information example in VB

#6253

Vadim Smirnov
Moderator

I am a newbie here and I was wondering if you could provide an example of how to read the data contents of a packet using visual basic syntax.

Regretfully I’m not a VB expert, but parsing Ethernet header is shown in the VB samples. You can parse follow up headers (IP, TCP/UDP) just on the same way.

Also is the data in the packet the same as it would be if I were to view the contents at the winsock level.

On WINSOCK level you work mostly with data streams (no packet headers), here you got packets with Ethernet, IP headers and etc… But packet payload contains the data you seen on winsock layer.

I want to get the source IP and Port and then view the data to determine whether to drop the packet or not, is that possible with WinPKFilter samples?

Yes, that is possible.