分享

[Ntop-misc] tcpdump with libpcap PF_RING enab...

 jijo 2009-04-24

[Ntop-misc] tcpdump with libpcap PF_RING enabled problem

WILLIAMS, Paul Paul.Williams at alcatel-lucent.ch
Fri Dec 8 12:08:44 CET 2006


Hi,
I do not know if this will help
here are a complete list of steps regarding the compiling of libpcap, from a install doc I writing.
I had the same issue as you before.
By doing the standard install I can duplicate you problem.
By following these steps, the problem is resolved.
Some of the steps may not be necessary, but it works when I follow them, and I'm happy with that.
Note: step 15-VIII, here I use pfring.o, in my last email I suggested libpfring.a
Hope it helps,
PBW.
14] Make libpfring
I)              cd /PF_RING/userland/libpfring
II)             make
15] Make the libpcap library (Assuming you have downloaded libpcap-0.9.4 Source to /SOURCE)
I)              cd /PF_RING/userland
II)             tar xvf /SOURCE/libpcap-0.9.4.tar
III)            cd libpcap-0.9.4
IV)             cp ../libpcap-0.9.4-ring/pcap* .
cp ../libpfring/pfring.h .
cp ../libpfring/libpfring.a .
cp ../libpfring/pfring.h /usr/local/include
cp ../libpfring/pfring.h /usr/include
V)    ./configure  CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
VI)     vi Makefile
VII)   Set the following values...
VIII)           INCLS = -I.
LIBS = ../libpfring/pfring.o
IX)      Find "libpcap.so" and change the line from...
ld -shared -o $@.`cat <mailto:$@.`cat>  VERSION` $(OBJ)
to...
ld -shared -o $@.`cat <mailto:$@.`cat>  VERSION` $(OBJ) $(LIBS)
X)      ln -s linux /usr/src/kernels/linux-2.6.18.3/include/linux
XI)     make
XII)    make install
XIII)   make install-shared
XIV)    make install-shared-so
XV)     cd /usr/lib
XVI)    rm libpcap*
XVII)   cp /usr/local/lib/libpcap* .
XVIII)  ln -s libpcap.so.0.9.4 libpcap.so
XIX)    ln -s libpcap.so.0.9.4 libpcap.so.0
XX)     ln -s libpcap.so.0.9.4 libpcap.so.0.9
I the cd to the tcpdump source dir and do the following configure...
./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -lpfring"
followed by a make

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多