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

来源:百度文库 编辑:神马文学网 时间:2024/05/01 04:53:42

[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

  • Previous message: [Ntop-misc] tcpdump with libpcap PF_RING enabled problem
  • Next message: [Ntop-misc] Προ?θηση: tcpdump with libpcap PF_RING enabled problem
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Hi,I do not know if this will helphere 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.aHope it helps,PBW.14] Make libpfringI)              cd /PF_RING/userland/libpfringII)             make15] Make the libpcap library (Assuming you have downloaded libpcap-0.9.4 Source to /SOURCE)I)              cd /PF_RING/userlandII)             tar xvf /SOURCE/libpcap-0.9.4.tarIII)            cd libpcap-0.9.4IV)             cp ../libpcap-0.9.4-ring/pcap* .cp ../libpfring/pfring.h .cp ../libpfring/libpfring.a .cp ../libpfring/pfring.h /usr/local/includecp ../libpfring/pfring.h /usr/includeV)    ./configure  CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"VI)     vi MakefileVII)   Set the following values...VIII)           INCLS = -I.LIBS = ../libpfring/pfring.oIX)      Find "libpcap.so" and change the line from...ld -shared -o $@.`cat   VERSION` $(OBJ)to...ld -shared -o $@.`cat   VERSION` $(OBJ) $(LIBS)X)      ln -s linux /usr/src/kernels/linux-2.6.18.3/include/linuxXI)     makeXII)    make installXIII)   make install-sharedXIV)    make install-shared-soXV)     cd /usr/libXVI)    rm libpcap*XVII)   cp /usr/local/lib/libpcap* .XVIII)  ln -s libpcap.so.0.9.4 libpcap.soXIX)    ln -s libpcap.so.0.9.4 libpcap.so.0XX)     ln -s libpcap.so.0.9.4 libpcap.so.0.9I 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