In certain situations, a personal firewall (either Windows Firewall, or third party) on the PC may interfere with receiving responses back from ETH32 devices. Typically, this is only a problem when the ETH32 has not been properly configured with a valid IP for the network to which it is connected. While disabling the firewall is one solution, it may be desirable to use a "sniffer" to see the packets on the network before they get to the PC's firewall. WinPcap is a free and open-source sniffer library that provides this functionality. If WinPcap is installed on your PC, you can load this plugin in the ETH32 API to utilize the sniffing capability of WinPcap. There are a few items to be aware of:
Depending on how WinPcap is installed, it may be necessary to run your application with Administrator rights in order for WinPcap to work properly.
WinPcap needs to be told which specific network interface it should listen on. Therefore, it is necessary to use the ETH32 API functions to retrieve a list of the available network interfaces and choose one of them.
The WinPcap plugin is not currently supported in the 64-bit version of the ETH32 API.
WinPcap downloads and information are at its web site: http://www.winpcap.org/
Task | C / C++ | .NET Languages | Visual Basic 6 |
---|---|---|---|
Load Plugin | eth32cfg_plugin_load | Load Method | Load Method |
Retrieve network interface information | |||
Choose network interface for sniffing | eth32cfg_plugin_choose_interface | ChooseInterface Method | ChooseInterface Method |
Free list of network interfaces | eth32cfg_plugin_interface_list_free | Free Method | Free Method |