Dear Yuri,
I would like to share with you something. What I did this I
had
reformated my machine and had a clean centos 6. I did all the steps work
well according to your user guide using svn method, all worked fine
except for this step insmod pf_ring.ko when I put the option I get
error. So what I did was just put this type this insmod pf_ring.ko it
got registered. Next I run cat /proc/net/pf_ring/info and below is the
information I get.
PF_RING Version : 5.1.0 ($Revision: 4971$)
Ring slots : 4096
Slot version : 13
Capture TX : Yes [RX+TX]
IP Defragment : No
Socket Mode : Standard
Transparent mode : Yes (mode 0)
Total rings : 1
Total plugins : 0
The
problem now I copied your pfcount.c and rename is pf1.c I did a gcc -o
pf1 pf1.c and I get a whole lot of errors. So what else am I missing why
I cannot compile properly? After the clean installation now in my
/usr/local/lib is only 2 files libpfring.a and libpfring.so. The example like
pfcount run perfectly fine. Did I miss any steps? Thank you.
From: [email protected]
Date: Wed, 9 Nov 2011 08:58:36 +0100
To: [email protected]
Subject: Re: [Ntop-misc] PF Ring Sample Program Problem.
As rootecho '/usr/local/lib' >> /etc/ld.so.confldconfig
Sent from my iPhone
Il giorno 09/nov/2011, alle ore 01:08, sukbir singh <[email protected]> ha
scritto:
Dear Yuri,
Further to my steps I went into the userland/libpcap folder and
also run make install. Now what I can see in my /usr/local/lib the files are
libpcap.a, libpcap.so.1,libpring.a,libpcap.so,libpcap.so.1.1.1 and
libpfring.so. So what else am I missing yet? Thank you.
From: [email protected]
Date: Tue, 8 Nov 2011 09:59:17 +0100
To: [email protected]
Subject: Re: [Ntop-misc] PF Ring Sample Program Problem.
By default it is installed in /usr/local/lib/ and I don't know if it is added
into your ld.so.conf file
Y
Sent from my iPhone
Il giorno 08/nov/2011, alle ore 02:26, sukbir singh <[email protected]> ha
scritto:
Dear Yuri,
How to check on the pfring lib got install into my directory or
not? Because what I did I went into PR_RING-4.6.0/userland/lib then I run make
install command here. So what else command must I run?
From: [email protected]
Date: Mon, 7 Nov 2011 20:34:49 +0100
To: [email protected]
Subject: Re: [Ntop-misc] PF Ring Sample Program Problem.
Did you add the pfring lib install directory to your library path?
Y
Sent from my iPhone
Il giorno 07/nov/2011, alle ore 19:35, sukbir singh <[email protected]> ha
scritto:
Dear Yuri,
I went into userland/lib and run make install. So now I
compile and that error is gone but I get some new things as below.
/tmp/ccVSDSgn.o: In function `print_stats':
pftry1.c:(.text+0xed): undefined reference to `pfring_stats'
/tmp/ccVSDSgn.o: In function `add_rule':
pftry1.c:(.text+0x43f): undefined reference to `pfring_add_filtering_rule'
/tmp/ccVSDSgn.o: In function `sigproc':
pftry1.c:(.text+0x4ca): undefined reference to `pfring_close'
/tmp/ccVSDSgn.o: In function `packet_consumer_thread':
pftry1.c:(.text+0x11b3): undefined reference to `pthread_setaffinity_np'
pftry1.c:(.text+0x123e): undefined reference to `pfring_recv'
/tmp/ccVSDSgn.o: In function `main':
pftry1.c:(.text+0x1456): undefined reference to `pthread_rwlock_init'
pftry1.c:(.text+0x1486): undefined reference to `pfring_open'
pftry1.c:(.text+0x14a0): undefined reference to `pfring_open_dna'
pftry1.c:(.text+0x14db): undefined reference to `pfring_set_application_name'
pftry1.c:(.text+0x14f1): undefined reference to `pfring_version'
pftry1.c:(.text+0x152f): undefined reference to `pfring_get_num_rx_channels'
pftry1.c:(.text+0x157f): undefined reference to `pfring_set_cluster'
pftry1.c:(.text+0x15ad): undefined reference to `pfring_set_direction'
pftry1.c:(.text+0x1657): undefined reference to `pfring_enable_ring'
pftry1.c:(.text+0x168a): undefined reference to `pthread_create'
pftry1.c:(.text+0x16b6): undefined reference to `pfring_close'
collect2: ld returned 1 exit status
> From: [email protected]
> Date: Mon, 7 Nov 2011 19:30:14 +0100
> To: [email protected]
> Subject: Re: [Ntop-misc] PF Ring Sample Program Problem.
>
> pfring.h: No such file or directory
> This could be the issue
> Yuri
>
> Sent from my iPhone
>
> Il giorno 07/nov/2011, alle ore 19:04, sukbir singh <[email protected]> ha
> scritto:
>
> > pfring.h: No such file or directory
> _______________________________________________
> 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
_______________________________________________
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