Bug 7370 - ngrep - requires --with-pcap-includes fully defined to find bpf.h
Summary: ngrep - requires --with-pcap-includes fully defined to find bpf.h
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 18:49 UTC by Lonnie Abelbeck
Modified: 2014-10-23 05:56 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lonnie Abelbeck 2014-09-08 18:49:41 UTC
For the ngrep package, with the following change:
--
-	--with-pcap-includes=$(STAGING_DIR)/usr/include \
+	--with-pcap-includes=$(STAGING_DIR)/usr/include/pcap \
--

The bpf.h include file is now properly found, such that the following are defined in config.h:
--
#define HAVE_DLT_RAW 1
#define HAVE_DLT_LOOP 1
#define HAVE_DLT_LINUX_SLL 1
#define HAVE_DLT_IEEE802_11 1
#define HAVE_DLT_IEEE802_11_RADIO 1
--

One benefit is that "ngrep -d any" now works since HAVE_DLT_LINUX_SLL is defined.
Comment 1 Thomas De Schampheleire 2014-09-08 18:55:10 UTC
Thanks for reporting this.
Would you mind sending this as a proper patch to the mailing list? This will definitely help us.
If you're unsure on how to send patches, have a look at http://buildroot.uclibc.org/downloads/manual/manual.html#submitting-patches

Thanks in advance!
Comment 2 Thomas De Schampheleire 2014-10-22 10:35:54 UTC
Patch sent to the list: http://patchwork.ozlabs.org/patch/401242/
Comment 3 Thomas Petazzoni 2014-10-22 20:49:04 UTC
Patch applied, thanks!