Project

General

Profile

Actions

Support #8082

open

Support: What APIs should be used for Suricata as a library in runmode=live

Added by Indira M 3 days ago. Updated about 19 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Affected Versions:
Label:

Description

Hello Suricata team,

We are integrating Suricata as a library in our VPP-based packet processing plugin. Our goal is to inspect live packets received from VPP using Suricata in library mode (not offline/pcap mode), with runmode set to "live".
Could you please clarify:

What are the recommended Suricata APIs for initializing, injecting live packets, and retrieving alerts/events when Suricata is used as a library in runmode=live?
Are there any specific initialization or threading requirements for this use case?
Is there an example or documentation for using Suricata as a library for real-time/live packet inspection (not pcap file replay)?
We have referred to examples/lib/custom/main.c, but it appears to use offline/pcap mode. We want to ensure we are using the correct APIs and patterns for live packet injection and alert retrieval.

Thank you!


Related issues 2 (2 open0 closed)

Related to Suricata - Task #8095: lib: expose API for reloading rulesetsAssignedJason IshActions
Related to Suricata - Task #8096: libsuricata: add live example usage of the Suricata libraryIn ReviewJason IshActions
Actions

Also available in: Atom PDF