Show WinPcap deprecation warning.

This commit is contained in:
Joseph C. Lehner 2022-07-11 11:08:07 +02:00
parent be1ea86958
commit 6d21f8642e

4
main.c
View file

@ -165,6 +165,10 @@ int main(int argc, char **argv)
atexit(&show_exit_prompt);
if (strstr(pcap_lib_version(), "WinPcap")) {
fprintf(stderr, "Warning: WinPcap is no longer supported! Install Npcap instead.\n");
}
val = WSAStartup(MAKEWORD(2, 2), &wsa);
if (val != 0) {
win_perror2("WSAStartup", val);