logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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.

perl v5.38.2                                       2024-03-05              Data::ParseBinary::Data::Netflow(3pm)

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));
           }

See Also