On Wed Oct 26 20:59:47 2022 +0000, Hans Leidekker wrote:
You shouldn't need another Unix call. The idea would be to pass a win32 adapter -> unix device mapping to findalldevs(). You'd call it first to get the needed size for the pcap_interface array, then allocate memory and then call it again to retrieve the array.
Thanks for looking into it!
I removed the additional Unix call and am calling findalldevs twice as you suggested, but am storing the name mapping indirectly in the device allocation on the PE side, which gets passed in again.
Ended up being a larger change in the end, but I believe all cases should now be handled gracefully.