Data-Netflow

 view release on metacpan or  search on metacpan

examples/encode_v5.pl  view on Meta::CPAN

say Dumper( @flow );
my $encoded = Data::Netflow::encodeV5( $Header, $TemplateV5, \@flow );
$sock_udp->send( $encoded );
$Data::Dumper::Sortkeys = 1;
say Dumper( Data::Netflow::decode( $encoded) );

sub uptime
{
    return (
        split /\s/,
        do {local ( @ARGV, $/ ) = '/proc/uptime'; <>}
    )[0];
}

examples/encode_v9.pl  view on Meta::CPAN

my $encoded = Data::Netflow::encodeV9($Header, $TemplateV9 ,\@flow);
$sock_udp->send( $encoded );

 Data::Netflow::decode($encoded );


sub uptime
{
    return (
        split /\s/,
        do {local ( @ARGV, $/ ) = '/proc/uptime'; <>}
    )[0];
}

lib/Data/Netflow.pm  view on Meta::CPAN

        }
    }
    $out .= $packedData;
    return $out;
}

sub uptime
{
    return (
        split /\s/,
        do {local ( @ARGV, $/ ) = '/proc/uptime'; <>}
    )[0];
}

=head1 AUTHOR

DULAUNOY Fabrice, C<< <fabrice at dulaunoy.com> >>

=head1 BUGS

Please report any bugs or feature requests to C<bug-data-netflow at rt.cpan.org>, or through

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.083 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )