Shmuel Fomberg > Data-ParseBinary-0.31 > Data::ParseBinary::Data::Netflow

Download:
Data-ParseBinary-0.31.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Data::ParseBinary::Data::Netflow - Parsing Netflow PDU binary structures

SYNOPSIS ^

    use Data::ParseBinary::Data::Netflow qw($netflow_v5_parser);
    $data = $netflow_v5_parser->parse(CreateStreamReader(File => $fh));
    # If file contain multiple flows, parse them till EOF
    while () {
        last if eof($fh);
        $data = $netflow_v5_parser->parse(CreateStreamReader(File => $fh));
    }   

CAVEAT ^

As for this moment version 5 format is supported only. Read files only in network byte order (BE).

This is a part of the Data::ParseBinary package, and is just one ready-made parser. please go to the main page for additional usage info.

syntax highlighting: