LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2004, 04:30 PM   #1
Xon
Member
 
Registered: Sep 2004
Posts: 49

Rep: Reputation: 15
net/bpf.h not installed


Hi there,
i tried to install p0f (passive operating fingerprinting tool) of lcamtuf, and looks like it didnt find net/bpf.h.

Code:
[root@localhost p0f]# ./Build
Your system type is: Linux

Please help with p0f 2:
  http://lcamtuf.coredump.cx/p0f-help/

GNU make found at /usr/bin/gmake, trying to use it...
gcc -O3 -Wall -fomit-frame-pointer -funroll-loops -o p0f p0f.c p0f-query.c -lpcap -I/usr/include/pcap -I/usr/local/include/pcap
p0f.c:39:21: net/bpf.h: No such file or directory
gmake: *** [p0f] Error 1
I ve installed libpcap-0.8.1 and i saw several "related" files like:

Code:
bpf_dump.c  bpf_dump.o  bpf_filter.c@  bpf_filter.o  bpf_image.c  bpf_image.o
Any suggestions?
Thanx

Last edited by Xon; 11-28-2004 at 04:32 PM.
 
Old 12-04-2004, 01:41 PM   #2
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Check that you have BPF support enabled in the kernel.
 
Old 01-12-2005, 09:47 AM   #3
Cool_Yeti
LQ Newbie
 
Registered: Jan 2005
Location: Germany
Distribution: Mandrake (9.x,10.x)
Posts: 1

Rep: Reputation: 0
Ok, this is a bit quick and dirty, but check if you have the file pcap-bpf.h (hopefully in /usr/include/) which comes with libpcap-devel (I think). If you have it, then you can simply do this:

cp /usr/include/pcap-bpf.h /usr/include/net/bpf.h
..... depending on the distribution ... maybe you need to change the directory names a bit. This trick worked for Mandrake very well.

Then you should be able to compile p0f. Yes, it's a cheap trick.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't compile hping3 - net/bpf.h: No such file or directory ddaas Fedora 3 08-25-2007 03:36 AM
LSF (BPF) for unprivileged programs nweaver Linux - Security 1 11-01-2005 06:38 AM
Non BSD equivelent of /dev/bpf mattp Linux - General 2 10-22-2005 06:26 PM
debian net install .. with another linux already installed purplejacket Linux - Software 0 11-15-2004 11:41 PM
Samba 3.0.0 installed on RH WS3, but "net join" command not found chloevu Linux - Networking 0 07-13-2004 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration