Assalam Alikum,
How are you all? I have been trying to install the following package; icmpenum.c:41:21: net/bpf.h: No such file or directory icmpenum.c: In function `send_packets': icmpenum.c:165: error: `LIBNET_IP_H' undeclared (first use in this function) icmpenum.c:165: error: (Each undeclared identifier is reported only once icmpenum.c:165: error: for each function it appears in.) icmpenum.c:171: error: `LIBNET_ERR_FATAL' undeclared (first use in this function) icmpenum.c:190: error: `LIBNET_ICMP_TS_H' undeclared (first use in this function) icmpenum.c:215: warning: passing arg 1 of `libnet_do_checksum' from incompatible pointer type icmpenum.c:215: warning: passing arg 2 of `libnet_do_checksum' makes pointer from integer without a cast icmpenum.c:215: error: too few arguments to function `libnet_do_checksum' icmpenum.c:257: error: `LIBNET_ERR_WARNING' undeclared (first use in this function) icmpenum.c: In function `receive_packets_normal': icmpenum.c:303: error: dereferencing pointer to incomplete type icmpenum.c: In function `grab_icmp': icmpenum.c:340: error: dereferencing pointer to incomplete type icmpenum.c: In function `main': icmpenum.c:569: error: `LIBNET_ICMP_ECHO_H' undeclared (first use in this function) icmpenum.c:573: error: `LIBNET_ICMP_TS_H' undeclared (first use in this function)
What should I do?
M B
Missing devel package?
do u have libpcap-devel package ?
AMG. -When things have gone from bad to worse, The cycle will repeate itself.
No
No, I don't have it installed as I guess. I only installed both libpcap and libnet.
Do I need to install it?
M B
Yup!
Yes, IIRC bpf.h is part of it (the missing file that's giving u all this pain)
AMG. -When things have gone from bad to worse, The cycle will repeate itself.