package Net::Packet::Layer4; # $Date: 2005/02/01 16:29:16 $ # $Revision: 1.1.1.1.4.9 $ require Net::Packet::Layer; our @ISA = qw(Net::Packet::Layer); use Net::Packet::Consts qw(:layer); require Net::Packet; our $VERSION = $Net::Packet::VERSION; sub layer { NP_LAYER_N_4 } sub _is { (shift->is eq shift()) ? 1 : 0 } sub isTcp { shift->_is(NP_LAYER_TCP) } sub isUdp { shift->_is(NP_LAYER_UDP) } sub isIcmpv4 { shift->_is(NP_LAYER_ICMPv4) } 1; __END__ =head1 NAME Net::Packet::Layer4 - base class for all layer 4 modules =head1 DESCRIPTION This is the base class for B subclasses. It just provides those layers with inheritable attributes and methods. =head1 METHODS =over 4 =item B =item B =item B Returns true if Layer4 is of specified type, false otherwise. =back =head1 AUTHOR Patrice EGomoRE Auffret =head1 COPYRIGHT AND LICENSE Copyright (c) 2004-2005, Patrice EGomoRE Auffret You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive. =head1 RELATED MODULES L, L, L =cut