Git Product home page Git Product logo

Comments (2)

cameronkerrnz avatar cameronkerrnz commented on September 24, 2024

Input details are available within ipfix_parse_msg (in the ipfix_input_t *input argument), but this is not passed into ipfix_export_datarecord and the export_drecord callbacks (eg. ipfix_export_drecord_jsonlines).

Being ipfix_export_* functions, they should be part of the internal API (unlike ipfix_col_* functions). Thus, we should be able to pass in this data easily enough, although it will cause a change for each type of collector (eg. files, mysql and jsonlines)

from libipfix.

cameronkerrnz avatar cameronkerrnz commented on September 24, 2024

ipfix_parse_raw_msg, unlike ipfix_parse_msg, does not have an argument for ipfix_input_t *input, so we'll pass this as NULL in that function.

int ipfix_parse_raw_msg(
   ipfixs_node_t *src, 
   ipfixe_node_t  *local_exporter, 
   const uint8_t *msg, 
   size_t nbytes );

int ipfix_parse_msg(
   ipfix_input_t *input,
   ipfixs_node_t **sources,
   const uint8_t *msg,
   size_t nbytes );

The function (ipfix_parse_raw_msg) doesn't appear to be used, and is marked as "internal, experimental". Passing as NULL will be fine, at least for now.

from libipfix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.