NAME
IPTables::Log::Set::Record - Holds a single IPTables/Netfilter log entry.
SYNOPSIS
Note that this class isn't designed to be created directly. You can create these objects via a IPTables::Log::Set
object.
use IPTables::Log;
my $l = IPTables::Log->new;
my $s = $l->create_set;
my $r = $s->create_record({text => '...IN=eth0 OUT=eth1 MAC=00:...'});
$r->parse;
DEPENDENCIES
Class::Accessor - for accessor methods
Data::GUID - for GUID generation
NetAddr::IP - for the
src
anddst
methods
CONSTRUCTORS
Record->create({text = '<iptables/netfilter log message>'}>)
Creates a new IPTables::Log::Set::Record
object. You shouldn't call this directly - see the synopsis for an example.
METHODS
$record->parse
Parses the log message text passed either to the constructor, or via set_text
.
$record->set_text("...IN=eth0 OUT=eth1 MAC=00:...")
Sets the log message text. Either this must be set, or the text must have been passed to create
, otherwise parse
will error.
CAVEATS
It parses log entries. It doesn't do much else, yet.
BUGS
None that I'm aware of ;-)
AUTHOR
This module was written by Andy Smith <andy.smith@netprojects.org.uk>.
COPYRIGHT
$Id: Record.pm 13 2009-10-15 08:52:18Z andys $
(c)2009 Andy Smith (http://andys.org.uk/)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.