readthefuckingmanual.net

[SOLVED] [main] physical layer header size unknown

Error added: 2006-03-02T10:04:29Z

1 people waiting for the answer...

1 answers found.

Answer 156 (0.0% helpful)

I had this issue because I renamed the interfaces and hping didn\'t know how to compute the physical layer header size (only in some hardcoded cases like pppN, ethN, ...)

configure --force-libpcap
touch /usr/include/net/bpf.h (as root)
make
make install (as root)

solved the problem. However, while compiling I got an error: \"net/bpf.h\" include file was not found. That was solved by the touch ... (otherwise yopu have to comment out the corresponding #include line in libpcap_stuff.c)

Hope that helped.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: