Advertisement

04.26.2008 at 01:21PM PDT, ID: 23356196
[x]
Attachment Details

error: linux/if_packet.h: No such file or directory!!!!!!!!

Asked by colorsit123 in FreeBSD, Linux Programming

when I using gcc to compile this error appeared:
# gcc sniffer.c -o sniffer
sniffer.c:4:21: error: features.h: No such file or directory
sniffer.c:5:28: error: linux/if_packet.h: No such file or directory
sniffer.c:6:27: error: linux/if_ether.h: No such file or directory
...

I have been looking in /usr/lib, /usr/include/, ... but I couldn't find if_packet.h
What's packet I was missing install?

// I am using freebsd 7 and this code work well in fedora 7 before.Start Free Trial
 
Loading Advertisement...
 
[+][-]04.26.2008 at 10:49PM PDT, ID: 21448287

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.27.2008 at 06:55AM PDT, ID: 21449144

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.01.2008 at 01:39PM PDT, ID: 21482532

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.01.2008 at 02:26PM PDT, ID: 21482882

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: FreeBSD, Linux Programming
Sign Up Now!
Solution Provided By: duncan_roe
Participating Experts: 2
Solution Grade: B
 
 
[+][-]05.01.2008 at 10:01PM PDT, ID: 21484625

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 09:27AM PDT, ID: 21487987

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628