libpcap building error

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Sun, 21 Oct 2007 09:32:52 +0400
Obviously we miss some DLT_* entries in our <net/bpf.h>:

cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -DHAVE_CONFIG_H 
-Dyylval=pcapyylval -I/usr/src/lib/libpcap -I. 
-D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF 
-I/usr/src/lib/libpcap/../../contrib/libpcap  -c 
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:382: error: 'DLT_MFR' 
undeclared here (not in a function)
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:383: error: 
'DLT_JUNIPER_VP' undeclared here (not in a function)
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:385: error: 'DLT_A429' 
undeclared here (not in a function)
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:386: error: 
'DLT_A653_ICM' undeclared here (not in a function)
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:387: error: 'DLT_USB' 
undeclared here (not in a function)
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:388: error: 
'DLT_BLUETOOTH_HCI_H4' undeclared here (not in a function)
/usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:389: error: 'DLT_CAN20B' 
undeclared here (not in a function)
*** Error code 1


-- 
http://ache.pp.ru/
Received on Sun Oct 21 2007 - 11:34:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:19 UTC