Dear Luca,
All this while we have disable libpcap using this
command ./configure
--disable-bpf as we want to use pure pf_ring and it was working well with
that command so what is the workaround for this version then? I am afraid
all our old codes will then have compilation errors due to this change.
Please help with a work around on this. In addition below is how we
normally do our compilation
gcc -O2 -DHAVE_PF_RING -Wall -I /usr/local/PF_RING-5.6.0/userland/kernel
-I /usr/local/PF_RING-5.6.0/userland/lib $(mysql_config --cflags)
$(mysql_config --libs) -c pfcount1.c -o pfcount1.o
and
gcc -O2 -DHAVE_PF_RING -Wall -I
/usr/local/PF_RING-5.6.0/userland/kernel -I
/usr/local/PF_RING-5.6.0/userland/lib $(mysql_config --cflags)
$(mysql_config --libs) pfcount1.o
/usr/local/PF_RING-5.6.0/userland/lib/libpfring.a -lpthread -lnl -lrt -o
pfcount1
You can notice we do did not include any libpcap and it works well.
So will all this be effected then?
Regards,
Frwa.
On Mon, Dec 9, 2013 at 6:49 AM, Luca Deri <[email protected]> wrote:
> Frwa,
> You do not have to disable libpcap as it is needed by pfring. Just compile
> it
>
> Luca
>
> Sent from my iPad (sorry for typos)
>
> On 08/dic/2013, at 16:34, frwa onto <[email protected]> wrote:
>
> Dear Luca,
> Below is what I saw in my userland/libpcap. Please tell me
> which command is the right one to disable the libpcap isnt this the right
> one to run from this folder [root@localhost lib]# ./configure
> --disable-bpf . Everything have been working smoothly in the previous
> version ?
>
>
> [root@localhost userland]# cd libpcap
> [root@localhost libpcap]# ls
> aclocal.m4 pcap_fileno.3pcap
> arcnet.h pcap-filter.manmisc.in
> atmuni31.h pcap_findalldevs.3pcap
> bpf pcap_freealldevs.3pcap
> bpf_dump.c pcap_freecode.3pcap
> bpf_image.c pcap_free_datalinks.3pcap
> CHANGES pcap_geterr.3pcap
> chmod_bpf pcap_get_selectable_fd.3pcap
> ChmodBPF pcap.h
> config.guess pcap_inject.3pcap
> config.h.in pcap-int.h
> config.sub pcap_is_swapped.3pcap
> configure pcap-libdlpi.c
> configure.in pcap_lib_version.3pcap
> CREDITS pcap-linktype.manmisc.in
> dlpisubs.c pcap-linux.c
> dlpisubs.h pcap_list_datalinks.3pcap.in
> etherent.c pcap_lookupdev.3pcap
> ethertype.h pcap_lookupnet.3pcap
> fad-getad.c pcap_loop.3pcap
> fad-gifc.c pcap_major_version.3pcap
> fad-glifc.c pcap-namedb.h
> fad-null.c pcap_next_ex.3pcap
> fad-sita.c pcap-nit.c
> fad-win32.c pcap-null.c
> filtertest.c pcap_offline_filter.3pcap
> findalldevstest.c pcap_open_dead.3pcap.in
> gencode.c pcap_open_live.3pcap
> gencode.h pcap_open_offline.3pcap.in
> grammar.y pcap-pf.c
> ieee80211.h pcap-savefile.manfile.in
> inet.c pcap-septel.c
> install-sh pcap-septel.h
> INSTALL.txt pcap_set_buffer_size.3pcap
> lbl pcap_set_datalink.3pcap
> LICENSE pcap_setdirection.3pcap
> llc.h pcap_setfilter.3pcap
> Makefile.in pcap_setnonblock.3pcap
> missing pcap_set_promisc.3pcap
> mkdep pcap_set_rfmon.3pcap
> msdos pcap_set_snaplen.3pcap
> nametoaddr.c pcap_set_timeout.3pcap
> nlpid.h pcap-sita.c
> opentest.c pcap-sita.h
> optimize.c pcap-sita.html
> org.tcpdump.chmod_bpf.plist pcap_snapshot.3pcap
> packaging pcap-snf.c
> pcap pcap-snf.h
> pcap.3pcap.in pcap-snit.c
> pcap_activate.3pcap pcap-snoop.c
> pcap-bpf.c pcap_stats.3pcap
> pcap-bpf.h pcap_statustostr.3pcap
> pcap_breakloop.3pcap pcap-stdinc.h
> pcap-bt-linux.c pcap_strerror.3pcap
> pcap-bt-linux.h pcap-usb-linux.c
> pcap.c pcap-usb-linux.h
> pcap-can-linux.c pcap-win32.c
> pcap-can-linux.h ppp.h
> pcap_can_set_rfmon.3pcap README
> pcap_close.3pcap README.aix
> pcap-common.c README.dag
> pcap-common.h README.hpux
> pcap_compile.3pcap.in README.linux
> pcap-config.1 README.macosx
> pcap-config.in README.septel
> pcap_create.3pcap README.sita
> pcap-dag.c README.tru64
> pcap-dag.h README.Win32
> pcap_datalink.3pcap.in runlex.sh
> pcap_datalink_name_to_val.3pcap savefile.c
> pcap_datalink_val_to_name.3pcap scanner.l
> pcap-dlpi.c selpolltest.c
> pcap-dos.c sf-pcap.c
> pcap-dos.h sf-pcap.h
> pcap_dump.3pcap sf-pcap-ng.c
> pcap_dump_close.3pcap sf-pcap-ng.h
> pcap_dump_file.3pcap sunatmpos.h
> pcap_dump_flush.3pcap SUNOS4
> pcap_dump_ftell.3pcap TODO
> pcap_dump_open.3pcap.in VERSION
> pcap-enet.c Win32
> pcap_file.3pcap
>
>
>
> On Sun, Dec 8, 2013 at 6:14 AM, Luca Deri <[email protected]> wrote:
>
>> frwa
>> for some reason the libcap library did not compile. Please cd
>> userland/libpcap and see what happens
>>
>> How did you disable libpcap?
>>
>> Luca
>>
>> On 08 Dec 2013, at 11:18, frwa onto <[email protected]> wrote:
>>
>> > We have used the previous version PF_RING-5.6.0 with the following
>> steps of avoiding libpcap.
>> > We download today the latest version PF_RING-5.6.1 and below is the
>> output for each step final in the /userland/example when we run the make
>> it shows gcc: ../libpcap-1.1.1-ring/libpcap.a: No such file or directory
>> > gcc: ../libpcap-1.1.1-ring/libpcap.a: No such file or directory. Why is
>> it still referring to libpcap when I have disable without any issue ? Is
>> there any new command not covered in the guide ?
>> >
>> >
>> > ./configure --disable-bpf
>> > checking for gcc... gcc
>> > checking whether the C compiler works... yes
>> > checking for C compiler default output file name... a.out
>> > checking for suffix of executables...
>> > checking whether we are cross compiling... no
>> > checking for suffix of object files... o
>> > checking whether we are using the GNU C compiler... yes
>> > checking whether gcc accepts -g... yes
>> > checking for gcc option to accept ISO C89... none needed
>> > checking how to run the C preprocessor... gcc -E
>> > checking for grep that handles long lines and -e... /bin/grep
>> > checking for egrep... /bin/grep -E
>> > checking for ANSI C header files... yes
>> > checking for sys/types.h... yes
>> > checking for sys/stat.h... yes
>> > checking for stdlib.h... yes
>> > checking for string.h... yes
>> > checking for memory.h... yes
>> > checking for strings.h... yes
>> > checking for inttypes.h... yes
>> > checking for stdint.h... yes
>> > checking for unistd.h... yes
>> > checking linux/net_tstamp.h usability... yes
>> > checking linux/net_tstamp.h presence... yes
>> > checking for linux/net_tstamp.h... yes
>> > checking librdi.h usability... no
>> > checking librdi.h presence... no
>> > checking for librdi.h... no
>> > checking for pthread_setaffinity_np in -lpthread... yes
>> > checking Zero support... yes
>> > checking if r/w locks are supported... yes
>> > checking DNA support... yes
>> > checking Virtual support... yes
>> > checking for librdi.h... (cached) no
>> > checking for redisCommand in -lhiredis... no
>> > checking for nl_handle_alloc in -lnl... yes
>> > checking for dag_get_stream_erf_types in -ldag... no
>> > configure: creating ./config.status
>> > config.status: creating Makefile
>> > config.status: creating ../examples/Makefile
>> > config.status: creating ../c++/Makefile
>> > config.status: creating config.h
>> > config.status: config.h is unchanged
>> >
>> >
>> > [root@localhost lib]# make
>> > ar x libs/libpfring_zero_x86_64.a
>> > ar x libs/libpfring_dna_x86_64.a
>> > ar x libs/libpfring_mod_virtual_x86_64.a
>> > =*= making library libpfring.a =*=
>> > ar rs libpfring.a pfring.o pfring_mod.o pfring_utils.o
>> pfring_mod_stack.o pfring_mod_usring.o pfring_hw_filtering.o
>> pfring_dna_bouncer.o pfring_mod_dna_cluster.o pfring_dna_cluster.o
>> pfring_dna_vas.o pfring_dna_sal.o pfring_libzero.o hugepages_lib.o
>> pfring_mod_dna.o pfring_dna.o pfring_e1000e_dna.o pfring_e1000_dna.o
>> pfring_ixgbe_dna.o pfring_igb_dna.o silicom_ts.o pfring_dna_utils.o
>> pfring_mod_virtual.o
>> > ranlib libpfring.a
>> > =*= making library libpfring.so =*=
>> > gcc -g -shared pfring.o pfring_mod.o pfring_utils.o pfring_mod_stack.o
>> pfring_mod_usring.o pfring_hw_filtering.o pfring_dna_bouncer.o
>> pfring_mod_dna_cluster.o pfring_dna_cluster.o pfring_dna_vas.o
>> pfring_dna_sal.o pfring_libzero.o hugepages_lib.o pfring_mod_dna.o
>> pfring_dna.o pfring_e1000e_dna.o pfring_e1000_dna.o pfring_ixgbe_dna.o
>> pfring_igb_dna.o silicom_ts.o pfring_dna_utils.o pfring_mod_virtual.o
>> -lpthread -lnl -o libpfring.so
>> >
>> >
>> > root@localhost lib]# make install
>> > ar x libs/libpfring_zero_x86_64.a
>> > ar x libs/libpfring_dna_x86_64.a
>> > ar x libs/libpfring_mod_virtual_x86_64.a
>> > =*= making library libpfring.a =*=
>> > ar rs libpfring.a pfring.o pfring_mod.o pfring_utils.o
>> pfring_mod_stack.o pfring_mod_usring.o pfring_hw_filtering.o
>> pfring_dna_bouncer.o pfring_mod_dna_cluster.o pfring_dna_cluster.o
>> pfring_dna_vas.o pfring_dna_sal.o pfring_libzero.o hugepages_lib.o
>> pfring_mod_dna.o pfring_dna.o pfring_e1000e_dna.o pfring_e1000_dna.o
>> pfring_ixgbe_dna.o pfring_igb_dna.o silicom_ts.o pfring_dna_utils.o
>> pfring_mod_virtual.o
>> > ranlib libpfring.a
>> > mkdir -p //usr/local/include
>> > cp pfring.h //usr/local/include/
>> > mkdir -p //usr/local/lib
>> > cp libpfring.a //usr/local/lib/
>> > =*= making library libpfring.so =*=
>> > gcc -g -shared pfring.o pfring_mod.o pfring_utils.o pfring_mod_stack.o
>> pfring_mod_usring.o pfring_hw_filtering.o pfring_dna_bouncer.o
>> pfring_mod_dna_cluster.o pfring_dna_cluster.o pfring_dna_vas.o
>> pfring_dna_sal.o pfring_libzero.o hugepages_lib.o pfring_mod_dna.o
>> pfring_dna.o pfring_e1000e_dna.o pfring_e1000_dna.o pfring_ixgbe_dna.o
>> pfring_igb_dna.o silicom_ts.o pfring_dna_utils.o pfring_mod_virtual.o
>> -lpthread -lnl -o libpfring.so
>> > mkdir -p //usr/local/lib
>> > cp libpfring.so //usr/local/lib/
>> >
>> >
>> > [root@localhost examples]# make
>> > gcc -O2 -DHAVE_PF_RING -Wall -I../../kernel -I../../kernel/plugins
>> -I../lib -I../libpcap-1.1.1-ring -D HAVE_ZERO -O2 pfcount.o
>> ../libpcap-1.1.1-ring/libpcap.a ../lib/libpfring.a -lpthread -lnl
>> ../libpcap-1.1.1-ring/libpcap.a -lrt -o pfcount
>> > gcc: ../libpcap-1.1.1-ring/libpcap.a: No such file or directory
>> > gcc: ../libpcap-1.1.1-ring/libpcap.a: No such file or directory
>> > make: *** [pfcount] Error 1
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > Ntop-misc mailing list
>> > [email protected]
>> > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>
>> _______________________________________________
>> Ntop-misc mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>
>
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
> _______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc