pcapdump - Dump packets from the network
pcapdump [-c count] [-i interface] [-s snaplen] [-w file] [expression] pcapdump --help pcapdump --version
Exit after receiving N packets.
Listen on the specified interface. If unspecified, the program will use the interface returned by pcap_lookupdev().
pcap_lookupdev()
Capture L bytes of data for each packet. Defaults to 256.
pcapdump mimics the very basic features of tcpdump(1) and provides a good example of how to use Net::Pcap.
Net::Pcap
Sébastien Aperghis-Tramoni, <sebastien@aperghis.net>
Copyright (C) 2005, 2006, 2007, 2008, 2009 Sébastien Aperghis-Tramoni. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Pcap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Pcap
CPAN shell
perl -MCPAN -e shell install Net::Pcap
For more information on module installation, please visit the detailed CPAN module installation guide.