http://qs321.pair.com?node_id=834324


in reply to Perl and Net::Pcap

Hi, first thank you for the introduction into tutorial.

But I found one problem. Is there an option in Net::Pcap to work with nanopcap file format? I tried to open a nanopcap file, which can be easily opened with Wireshark, in my perl script using the Net::Pcap::open_offline() function and I'm getting standard error message "p is not of type pcap_tPtr at".

I really need an advice on this one. Thanks in advance.

Replies are listed 'Best First'.
Re^2: Perl and Net::Pcap
by Anonymous Monk on Aug 13, 2010 at 00:03 UTC
    Hi, this is very excellent article. I am bit struggling Can't locate object method "decode" via package "NetPacket::IP" (perhaps you for got to load "NetPacket::IP"?) at sysnp.pl line 83. with this error. Any Idea why? Many Thanks in Advance
      Did you load NetPacket::IP? Its not a trick question
        Thank you for your reply... I had issues configuring NetPacket-0.04, therefore I had to manually add perl modules into /etc/perl/NetPacket it looks like this kelly@linux-desktop:/etc/perl/NetPacket$ ls -l total 84 -rw-r--r-- 1 root root 7185 2010-08-13 00:11 Ethernet.pm -rw-r--r-- 1 root root 65853 2010-08-13 00:13 IP.pm -rw-r--r-- 1 root root 6687 2010-08-13 00:14 TCP.pm I am on Ubuntu 2.2, please let me know, whether I ma doing this right, Many Thanks