Wireshark-dev: [Wireshark-dev] HAVE_PCAP symbols by build type

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Sat, 6 Aug 2011 10:32:39 +0200
Hello,

I've created a small list that shows the HAVE_PCAP... symbols used in
the source code and by build type (configure, cmake, windows).
Looks like we have some inconsistencies, but some of them might be due
to differences in winpcap and libpcap. Anyone willing to take a look?

Thanks
     Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
Used in the code (.h and .c files):
HAVE_PCAP_BREAKLOOP
HAVE_PCAP_CREATE
HAVE_PCAP_DATALINK_NAME_TO_VAL
HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
HAVE_PCAP_DATALINK_VAL_TO_NAME
HAVE_PCAP_FINDALLDEVS
HAVE_PCAP_FREECODE
HAVE_PCAP_FREE_DATALINKS
HAVE_PCAP_GET_SELECTABLE_FD
HAVE_PCAP_LIB_VERSION
HAVE_PCAP_LIST_DATALINKS
HAVE_PCAP_OPEN
HAVE_PCAP_OPEN_DEAD
HAVE_PCAP_REMOTE
HAVE_PCAP_SETSAMPLING
HAVE_PCAP_SET_DATALINK
HAVE_PCAP_VERSION

cmake/modules/FindPCAP.cmake:
HAVE_PCAP_BREAKLOOP
HAVE_PCAP_CREATE
HAVE_PCAP_DATALINK_NAME_TO_VAL
HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
HAVE_PCAP_DATALINK_VAL_TO_NAME
HAVE_PCAP_FINDALLDEVS
HAVE_PCAP_FREECODE
HAVE_PCAP_FREE_DATALINKS
HAVE_PCAP_GET_SELECTABLE_FD
HAVE_PCAP_LIB_VERSION
HAVE_PCAP_LIST_DATALINKS
HAVE_PCAP_OPEN_DEAD
HAVE_PCAP_REMOTE
HAVE_PCAP_SET_DATALINK
HAVE_PCAP_VERSION
Missing:
HAVE_PCAP_OPEN
HAVE_PCAP_SETSAMPLING

cmakeconfig.h.in:
HAVE_PCAP_BREAKLOOP
HAVE_PCAP_CREATE
HAVE_PCAP_DATALINK_NAME_TO_VAL
HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
HAVE_PCAP_DATALINK_VAL_TO_NAME
HAVE_PCAP_FINDALLDEVS
HAVE_PCAP_FREECODE
HAVE_PCAP_FREE_DATALINKS
HAVE_PCAP_GET_SELECTABLE_FD
HAVE_PCAP_LIB_VERSION
HAVE_PCAP_LIST_DATALINKS
HAVE_PCAP_OPEN_DEAD
HAVE_PCAP_REMOTE
HAVE_PCAP_SET_BUFFER_SIZE
HAVE_PCAP_SET_DATALINK
HAVE_PCAP_VERSION
Missing:
HAVE_PCAP_OPEN
Extra:
HAVE_PCAP_SET_BUFFER_SIZE

configure:
HAVE_PCAP_VERSION
HAVE_PCAP_BREAKLOOP
HAVE_PCAP_FINDALLDEVS
HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
HAVE_PCAP_REMOTE
HAVE_PCAP_SETSAMPLING

config.h.in:
HAVE_PCAP_BREAKLOOP
HAVE_PCAP_CREATE
HAVE_PCAP_CREATESRCSTR
HAVE_PCAP_DATALINK_NAME_TO_VAL
HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
HAVE_PCAP_DATALINK_VAL_TO_NAME
HAVE_PCAP_FINDALLDEVS
HAVE_PCAP_FINDALLDEVS_EX
HAVE_PCAP_FREECODE
HAVE_PCAP_FREE_DATALINKS
HAVE_PCAP_GET_SELECTABLE_FD
HAVE_PCAP_LIB_VERSION
HAVE_PCAP_LIST_DATALINKS
HAVE_PCAP_OPEN
HAVE_PCAP_OPEN_DEAD
HAVE_PCAP_REMOTE
HAVE_PCAP_SETSAMPLING
HAVE_PCAP_SET_DATALINK
HAVE_PCAP_VERSION
Extra:
HAVE_PCAP_FINDALLDEVS_EX
HAVE_PCAP_SET_BUFFER_SIZE

config.h.win32:
HAVE_PCAP_BREAKLOOP
HAVE_PCAP_DATALINK_NAME_TO_VAL
HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
HAVE_PCAP_DATALINK_VAL_TO_NAME
HAVE_PCAP_FINDALLDEVS
HAVE_PCAP_FREECODE
HAVE_PCAP_FREE_DATALINKS
HAVE_PCAP_LIST_DATALINKS
HAVE_PCAP_OPEN
HAVE_PCAP_OPEN_DEAD
HAVE_PCAP_REMOTE
HAVE_PCAP_SETSAMPLING
HAVE_PCAP_SET_DATALINK
Missing:
HAVE_PCAP_CREATE
HAVE_PCAP_GET_SELECTABLE_FD
HAVE_PCAP_LIB_VERSION
HAVE_PCAP_VERSION