Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft] plugins: ndpi stub plugin - v1 #11970

Closed
wants to merge 7 commits into from

Commits on Oct 17, 2024

  1. flow: add callbacks for flow init and flow updates

    Adds user registerable callbacks for flow initialization, flow
    update and flow finish.
    
    Some plugins, such as other DPI libraries like nDPI need a way to hook
    into these flow lifecycle events.
    
    Ticket: OISF#7319
    Ticket: OISF#7320
    jasonish committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    aae3bf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bbeb9f8 View commit details
    Browse the repository at this point in the history
  3. threads: add initialization callbacks

    For library users and plugins that need to hook into the thread life
    cycle, perhaps to initialize some thread storage.
    jasonish committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    34c3ac3 View commit details
    Browse the repository at this point in the history
  4. eve: user callbacks for adding additional data

    Provide a way for library/plugin users to register a callback that
    will be called prior to an EVE record being closed. The callback will
    be passed ThreadVars, Packet, and Flow pointers if available, as well
    as private user data.
    jasonish committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    a34e5a9 View commit details
    Browse the repository at this point in the history
  5. examples/plugin: update to find generated rust header

    Needed for changes to output-eve.h.
    jasonish committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    78f09d4 View commit details
    Browse the repository at this point in the history
  6. detect: break apart sigtable setup and initialization

    Allows initialization to be done early, so the table is ready for
    dynamic registration by plugins which are loaded before signature
    setup.
    jasonish committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    ff88c47 View commit details
    Browse the repository at this point in the history
  7. plugins/ndpi: stub in dummy ndpi plugin

    This plugin stub shows how a plugin like nDPI might be use the flow
    init and flow update callbacks to do its work. Also shows usage of
    FlowStorage to avoid modifying the Flow struct directly.
    jasonish committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    28de229 View commit details
    Browse the repository at this point in the history