pcap-int.h contains pcap "internals" that we shouldn't really be using. On Windows, we use it to peek into the struct pcap in order to retrieve the ADAPTER *adapter member to use in a call to PacketSetReadTimeout in tcpip.cc. The reason for this call is explained in this nmap-dev post from 2010.
Since this header contains internal implementation-specific details, we shouldn't rely on it not changing (though it hasn't in almost a decade). Instead, we should find a way to accomplish the same task (setting varying timeouts on a single pcap descriptor) in a way that works on all platforms. This might be accomplished via #123, but it might require separate or extra effort.
pcap-int.hcontains pcap "internals" that we shouldn't really be using. On Windows, we use it to peek into thestruct pcapin order to retrieve theADAPTER *adaptermember to use in a call toPacketSetReadTimeoutintcpip.cc. The reason for this call is explained in this nmap-dev post from 2010.Since this header contains internal implementation-specific details, we shouldn't rely on it not changing (though it hasn't in almost a decade). Instead, we should find a way to accomplish the same task (setting varying timeouts on a single pcap descriptor) in a way that works on all platforms. This might be accomplished via #123, but it might require separate or extra effort.