in reply to Re^6: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
in thread "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
#!/usr/bin/perl use Net::Pcap qw( :functions ); $|=1; my $err = ''; my $dev = lookupdev(\$err); my $pcap = open_live( $dev, 1024, 1, 0, \$err ); loop( $pcap, 10, \&process_packet, "just for the demo" ); pcap_close( $pcap ); sub process_packet { my($user_data, $header, $packet ) = @_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: "Undefined subroutine &main::pcap_lookupdev called" yet module installed and PERL5LIB is set correctly : *(
by stevehicks (Sexton) on Jun 10, 2009 at 20:32 UTC | |
by Anonymous Monk on Jun 11, 2009 at 04:39 UTC | |
by Khen1950fx (Canon) on Jun 11, 2009 at 06:28 UTC | |
by ikegami (Patriarch) on Jun 11, 2009 at 06:43 UTC | |
by stevehicks (Sexton) on Jun 11, 2009 at 08:42 UTC |