Net::Inspect::L3::IP - get raw IP packets, reassemble fragments
my $raw = Net::Inspect::L3::IP->new($tcp); $raw->pktin($data,$timestamp);
Gets Raw-IP packets via pktin hook, extracts meta-data, reassembles fragmented packets and calls pktin hook on attached flows, once for each full packet.
pktin
Provides the hooks required by Net::Inspect::L2::Pcap. Usually Net::Inspect::L4::TCP or similar are used as upper flow.
Net::Inspect::L2::Pcap
Net::Inspect::L4::TCP
Constructor:
The only used argument is %args is timeout, which specifies when timeout in seconds, after which the next fragment of a packet must be received. Defaults to 60.
timeout
Hooks provided:
Hooks called:
The following meta data are given:
time when the last fragment of the packet was received. Like time_t, but double.
the addresses of the sender and destination of the packet
protocol of the packet
id of the packet
QoS flags of the packet
TTL counter of the packet
number of fragments or undef if packet wasn't fragmented
for now only IPv4 is implemented
To install Net::Inspect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Inspect
CPAN shell
perl -MCPAN -e shell install Net::Inspect
For more information on module installation, please visit the detailed CPAN module installation guide.