Actions
Bug #4797
closedndndump: pcap_lookupdev is deprecated
Start date:
Due date:
% Done:
100%
Estimated time:
Tags:
Description
libpcap 1.9.0
../tools/dump/ndndump.cpp:99:33: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
const char* defaultDevice = pcap_lookupdev(errbuf);
^
../../../../local/include/pcap/pcap.h:327:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here
PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device");
^
../../../../local/include/pcap/funcattrs.h:225:53: note: expanded from macro 'PCAP_DEPRECATED'
#define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg)))
^
1 warning generated.
Updated by Davide Pesavento over 4 years ago
This warning now shows up in Ubuntu 19.10, which upgraded from libpcap 1.8.1 to 1.9.1
Updated by Davide Pesavento almost 4 years ago
- Tags changed from CodeCleanup to code-cleanup
Updated by Junxiao Shi about 2 years ago
- Status changed from New to Code review
- Assignee set to Junxiao Shi
Updated by Davide Pesavento about 2 years ago
- Status changed from Code review to Closed
- Priority changed from Normal to Low
- % Done changed from 0 to 100
Actions