Actually, I reloaded the Napatech service and it worked! Thanks so much for your help!
On Mon, Aug 10, 2015 at 3:30 PM, Nick Allen <[email protected]> wrote: > I am no longer seg faulting, but am seeing another error. Am I using the > correct interface descriptor? > > $ sudo ./pfcount -i nt:0 > ######################################################################### > # ERROR: You do not seem to have a valid PF_RING-Napatech 6.1.1.150810 > # license for port 0 (P/N 810-0048-01-08) > # ERROR: Please get one at http://shop.ntop.org/. > ######################################################################### > # We're now working in demo mode with packet capture and > # transmission limited to 5 minutes > ######################################################################### > Using PF_RING v.6.1.1 > Unable to read the device address > # Device RX channels: 1 > # Polling threads: 1 > Dumping statistics on /proc/net/pf_ring/stats/34171-none.8 > NT_NTPL() failed: Assign[StreamId=0] = Port == 0 > Unable to enable ring :-( > > > > > > > On Mon, Aug 10, 2015 at 2:58 PM, Alfredo Cardigliano <[email protected] > > wrote: > >> Hi Nick >> please try with latest code from git, I made some fixes. >> >> Alfredo >> >> On 10 Aug 2015, at 20:27, Nick Allen <[email protected]> wrote: >> >> I am attempting to leverage the PF_RING library with a Napatech NIC. >> When attempting to run example code (userland/examples/pcount) from PF_RING >> a seg fault occurs. I am able to successfully run this example code with >> any other NIC. This only happens on the Napatech device. I am able to use >> tcpdump with the Napatech NIC. What am I doing wrong? >> >> This is what I see when I execute the example code (after enabling some >> additional debug info). >> >> $ sudo ./pcount -i nt0 >> >> Capturing from nt0 >> >> [PF_RING] Attempting to pfring_open(nt0) >> >> [PF_RING] pfring_open: device_name=nt0 >> >> [PF_RING] pfring_open: found module nt >> >> >> This is the stack trace that I can see with GDB. >> >> $ sudo gdb ./pcount >> >> … >> >> (gdb) run -i nt0 >> >> Starting program: /home/nick/PF_RING/userland/examples/pcount -i nt0 >> >> [Thread debugging using libthread_db enabled] >> >> Capturing from nt0 >> >> [PF_RING] Attempting to pfring_open(nt0) >> >> [PF_RING] pfring_open: device_name=nt0 >> >> [PF_RING] pfring_open: found module nt >> >> [New Thread 0x7ffff4953700 (LWP 22292)] >> >> Program received signal SIGSEGV, Segmentation fault. >> >> 0x00007ffff52a3565 in __strstr_sse42 () from /lib64/libc.so.6 >> >> Missing separate debuginfos, use: debuginfo-install >> glibc-2.12-1.149.el6_6.9.x86_64 numactl-2.0.9-2.el6.x86_64 >> >> (gdb) bt >> >> #0 0x00007ffff52a3565 in __strstr_sse42 () from /lib64/libc.so.6 >> >> #1 0x00000000004436e4 in pfring_nt_open () >> >> #2 0x0000000000428ed4 in pfring_open () >> >> #3 0x000000000040e473 in pcap_activate_linux (handle=0x68a4a0) at >> ./pcap-linux.c:1316 >> >> #4 0x000000000040f849 in pcap_activate (p=0x68a4a0) at ./pcap.c:732 >> >> #5 0x00000000004102d0 in pcap_open_live (source=0x689920 "nt0", >> snaplen=256, promisc=1, to_ms=500, >> >> errbuf=0x7fffffffe4e0 "\210\341\377\367\377\177") at ./pcap.c:786 >> >> #6 0x0000000000409109 in main () >> >> >> These are the commands I run to compile PF_RING to work with the Napatech >> device. >> >> $ cd PF_RING/kernel >> >> $ make >> >> $ sudo insmod pf_ring.ko >> >> $ cd ../userland/lib >> >> $ ./configure --enable-nt >> >> $ make >> >> $ cd ../libpcap >> >> $ ./configure >> >> $ make >> >> $ cd ../examples >> >> $ make >> >> $ sudo ./pfcount -i nt:0 >> >> >> Any tips or tricks would be much appreciated. >> >> Cheers >> >> >> >> >> -- >> Nick Allen <[email protected]> >> _______________________________________________ >> 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 >> > > > > -- > Nick Allen <[email protected]> > -- Nick Allen <[email protected]>
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
