Trouble compiling packit - need net/bpf.h


I had trouble compiling packit today, a network auditing tool that allows one to define (spoof) nearly all TCP, UDP, ICMP, IP, ARP, RARP, and Ethernet header options to test firewalls, intrusion detection/prevention systems, port scanning, simulating network traffic, and general TCP/IP auditing. I’m running OpenSUSE 10.1 and the compilation failed on a #include <net/bpf.h>.

I found a solution to this problem on Jeff Terrell’s site, but here it is in a nutshell. Assuming you have libpcap already installed, all you should have to do is:

  • cp /usr/include/pcap-bpf.h /usr/include/net/bpf.h

Alternatively, edit the header file with the problem and point it in the correct location.

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts
The 2007 Fortune 1000 Website List
Getting large list of URLs for testing using Squid logs

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

I think I like your blog better when I understand what you’re talking about.

Just thought I’d throw that out there.