File Coverage

blib/lib/File/PCAP.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package File::PCAP;
2              
3 3     3   65703 use 5.006;
  3         12  
4 3     3   14 use strict;
  3         6  
  3         54  
5 3     3   10 use warnings;
  3         6  
  3         112  
6              
7             =head1 NAME
8              
9             File::PCAP - a pure Perl library to handle libpcap based files.
10              
11             =head1 VERSION
12              
13             Version v0.0.7
14              
15             =cut
16              
17 3     3   996 use version; our $VERSION = qv('v0.0.7');
  3         4272  
  3         17  
18              
19             =head1 SYNOPSIS
20              
21             The libraries in this module handle libpcap files in version 2.4.
22              
23             This library itself does not much meaningful.
24              
25             You're proably interested in one of
26             L,
27             L, or
28             L.
29              
30             =cut
31              
32             # see: http://www.tcpdump.org/linktypes.html
33              
34             our $linktypes = {
35             0 => [ qw( DLT_NULL LINKTYPE_NULL ) ],
36             1 => [ qw( DLT_EN10MB LINKTYPE_ETHERNET ) ],
37             101 => [ qw( DLT_RAW LINKTYPE_RAW ) ],
38             }; # $linktypes
39              
40             =head1 AUTHOR
41              
42             Mathias Weidner, C<< >>
43              
44             =head1 BUGS
45              
46             Please report any bugs or feature requests to C, or through
47             the web interface at L. I will be notified, and then you'll
48             automatically be notified of progress on your bug as I make changes.
49              
50             =head1 SUPPORT
51              
52             You can find documentation for this module with the perldoc command.
53              
54             perldoc File::PCAP
55              
56             You can also look for information at:
57              
58             =over 4
59              
60             =item * RT: CPAN's request tracker (report bugs here)
61              
62             L
63              
64             =item * AnnoCPAN: Annotated CPAN documentation
65              
66             L
67              
68             =item * CPAN Ratings
69              
70             L
71              
72             =item * Search CPAN
73              
74             L
75              
76             =item * LINK-LAYER HEADER TYPES (tcpdump.org)
77              
78             L
79              
80             =back
81              
82             =head1 ACKNOWLEDGEMENTS
83              
84             =head1 LICENSE AND COPYRIGHT
85              
86             Copyright 2017 Mathias Weidner.
87              
88             This program is free software; you can redistribute it and/or modify it
89             under the terms of the the Artistic License (2.0). You may obtain a
90             copy of the full license at:
91              
92             L
93              
94             Any use, modification, and distribution of the Standard or Modified
95             Versions is governed by this Artistic License. By using, modifying or
96             distributing the Package, you accept this license. Do not use, modify,
97             or distribute the Package, if you do not accept this license.
98              
99             If your Modified Version has been derived from a Modified Version made
100             by someone other than you, you are nevertheless required to ensure that
101             your Modified Version complies with the requirements of this license.
102              
103             This license does not grant you the right to use any trademark, service
104             mark, tradename, or logo of the Copyright Holder.
105              
106             This license includes the non-exclusive, worldwide, free-of-charge
107             patent license to make, have made, use, offer to sell, sell, import and
108             otherwise transfer the Package with respect to any patent claims
109             licensable by the Copyright Holder that are necessarily infringed by the
110             Package. If you institute patent litigation (including a cross-claim or
111             counterclaim) against any party alleging that the Package constitutes
112             direct or contributory patent infringement, then this Artistic License
113             to you shall terminate on the date that such litigation is filed.
114              
115             Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
116             AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
117             THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
118             PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
119             YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
120             CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
121             CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
122             EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
123              
124             =cut
125              
126             # vim: set ts=4 sw=4 et si:
127              
128             1; # End of File::PCAP