PDA

View Full Version : Packet Generator Regression Tests



anujit
05-21-2009, 11:46 PM
Hi, I've just started running regression tests for the Packet Generator and all but the rate_limiter test fail with the following output:

Can't locate /root/NF2/projects/crypto_nic/lib/Perl5/reg_defines_packet_generator.ph in @INC (did you run h2ph?) (@INC contains: /root/NF2/projects/crypto_nic/lib/Perl5 /root/NF2/lib/Perl5 /root/NF2/projects/crypto_nic/lib/Perl5 /root/NF2/lib/Perl5 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /root/NF2/projects/packet_generator/regress/test_rate_limiter/run.pl line 10.

I'm unsure what h2ph is as well. Am I missing some crypto_nic library? And if so, where can I get this?

Thanks

gac1
05-22-2009, 12:07 AM
Hello,

You need to make sure the Perl5 environment variable is correct for the project you are using.

If using the Packet Generator you need the following:

PERL5LIB=/root/NF2/projects/packet_generator/lib/Perl5:/root/NF2/lib/Perl5

This is assuming you have the Packet Generator code copied into the the root's NF2 directory. You may need to replace /root/NF2 with /usr/local/NF2 if it was installed with yum and not copied to the root's NF2 directory.

These types of environment variable issues should be resolved in the next version of the NetFPGA package (2.0 beta).

Let me know if there are other issues.

anujit
05-29-2009, 08:37 PM
Thanks, that fixed those errors, but now I can't seem to get rid of this rate limiter error. It occurs every time, although the rate reported varies.

Running test 'test_rate_limiter/run.pl'... FAIL
Output was:
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 2000 bytes
finished transmitting the data
43 packets captured
43 packets received by filter
0 packets dropped by kernel
Rate limited to: 1000 Kbps
Captured file reports 1008.86876922692 Kbps
FAIL: 1 errors


test_rate_limiter/run.pl exited with value 1

Is there any reason why the reported rate is slightly off from the limited rate?

Thanks

paolo13
07-16-2009, 09:11 AM
I have the same message error but after i have do PERL5LIB=/root/NF2.................................., the error is still occuring , what is the solution please?