Project

General

Profile

Actions

Bug #4797

closed

ndndump: pcap_lookupdev is deprecated

Added by Davide Pesavento over 5 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Start date:
Due date:
% Done:

100%

Estimated time:

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.
Actions

Also available in: Atom PDF