Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcap_lookupdev() is deprecated #15

Open
Ndolam opened this issue Jan 2, 2023 · 0 comments
Open

pcap_lookupdev() is deprecated #15

Ndolam opened this issue Jan 2, 2023 · 0 comments

Comments

@Ndolam
Copy link

Ndolam commented Jan 2, 2023

Compiling on Slackware64 15.0

main.c: In function ‘defaults’:
main.c:73:17: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
73 | device = pcap_lookupdev(errbuf);
| ^~~~~~
In file included from /usr/include/pcap.h:43,
from tcptraceroute.h:38,
from main.c:23:
/usr/include/pcap/pcap.h:394:18: note: declared here
394 | PCAP_API char *pcap_lookupdev(char *)
| ^~~~~~~~~~~~~~

It compiles anyway, but just in case you wish to follow gcc's advice...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant