Show WinPcap deprecation warning.
This commit is contained in:
parent
be1ea86958
commit
6d21f8642e
1 changed files with 4 additions and 0 deletions
4
main.c
4
main.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue