Net::Inspect::L2::Pcap - get packets from PCAP
# $pcap is Net::Pcap|linktype
my $pc = Net::Inspect::L2::Pcap->new($pcap);
$pc->attach( $rawip );
my (undef,$hdr,$data) = @_;
Gets data from pcap via pktin method, extracts data and calls pktin hook once for each packet.
Usually pktin is called directly and Net::Inspect::L3::IP is used as upper flow.
To install Net::Inspect, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.