GetPcapDeviceStruct returns pointer to invalid memory
Status: Beta
Brought to you by:
crazycomputers
the function:
internal static PCAP_IF GetPcapDeviceStruct(string pcapName)
returns a pointer to a device, but the memory holding the device data is cleared before returning the pointer:
if(pcap_if.Name==pcapName)
{
pcap_freealldevs( ptrDevs ); // free buffers // SN: this deletes also necessary pointers !!!
return pcap_if;
}
Logged In: YES
user_id=1990615
Originator: YES
please delete, bug report was to wrong project. Its confusing because there is also a pcap-sharp project on sourceforge. Sorry.