summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2018-07-12 22:01:43 +0200
committerDenis Ovsienko <denis@ovsienko.info>2018-07-19 07:15:11 +0100
commit152acc2ece46a796779503d103ff6a0deb90cbc1 (patch)
tree0a1b796d95feb05085c8a1e6187e8a023cfa3fd2 /CMakeLists.txt
parenteb962af8e8e1cfe25f9294f1d80807aa311b73c8 (diff)
downloadtcpdump-152acc2ece46a796779503d103ff6a0deb90cbc1.tar.gz
Display interface and index and name on DLT_LINUX_SLL2
Index is displayed always, name only if available. Warn about possible wrong interfaces when in reading mode (pcap file can be displayed on a different host then where was captured) [1]. See: GH the-tcpdump-group/libpcap#127 [1] https://lists.sandelman.ca/pipermail/tcpdump-workers/2018-July/001019.html Signed-off-by: Petr Vorel <pvorel@suse.cz> Suggested-by: Guy Harris <guy@alum.mit.edu> Reviewed-by: Denis Ovsienko <denis@ovsienko.info> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff02c8bb..ab5f8355 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -191,6 +191,7 @@ include(CheckTypeSize)
#
check_include_file(fcntl.h HAVE_FCNTL_H)
check_include_file(rpc/rpc.h HAVE_RPC_RPC_H)
+check_include_file(net/if.h HAVE_NET_IF_H)
if(HAVE_RPC_RPC_H)
check_include_files("rpc/rpc.h;rpc/rpcent.h" HAVE_RPC_RPCENT_H)
endif(HAVE_RPC_RPC_H)