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 #1

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

Actions #2

Updated by Davide Pesavento almost 4 years ago

  • Tags set to CodeCleanup
Actions #3

Updated by Davide Pesavento almost 4 years ago

  • Tags changed from CodeCleanup to code-cleanup
Actions #4

Updated by Junxiao Shi about 2 years ago

  • Status changed from New to Code review
  • Assignee set to Junxiao Shi
Actions #5

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

Also available in: Atom PDF