hping2

hping2をインストールしてみた。

hping2のサイトからソースコードをダウンロードし、お決まりの手順でコンパイルするが、libpcap_stuff.cのコンパイルで次のエラーが発生した。

$ ./configure
$ make
....
gcc -c -O2 -Wall  -g  libpcap_stuff.c
In file included from libpcap_stuff.c:20:
/usr/include/net/bpf.h:91: error: redefinition of `struct bpf_program'
/usr/include/net/bpf.h:115: error: redefinition of `struct bpf_version'
/usr/include/net/bpf.h:322: error: redefinition of `struct bpf_insn'

しょうがないのでlibpcap_stuff.cの#include <pcap.h>をコメントにして再make。今度はうまくいった。

rootにならないと利用できない。

コメントする

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください