Commit Graph

16 Commits (468a13e0520e294764ec0c00329322b925f0313c)

Author SHA1 Message Date
Jason Ish 77d96851f5 pfring: use static functions; add void arg to SCPluginRegister
Minor cleanups.
2 months ago
Jason Ish a60e93c2cd pfring: fix typo in StringParseUint16
StringParseUnt16 -> StringParseUint16

Ticket: #8271
2 months ago
Jason Ish 828d105cea pfring: copy cflags over from src/
This should cause the following warning to error out:

runmode-pfring.c: In function 'OldParsePfringConfig':
runmode-pfring.c:118:17: error: implicit declaration of function 'StringParseUnt16'; did you mean 'StringParseInt16'? [-Wimplicit-function-declaration]
  118 |             if (StringParseUnt16(&pfconf->threads, 10, 0, threadsstr) < 0) {
      |                 ^~~~~~~~~~~~~~~~
      |                 StringParseInt16

Ticket: #8271
2 months ago
Victor Julien 7c0776abeb counters: remove ThreadVars from counter registration
Just pass the StatsThreadContext pointer directly.
5 months ago
Victor Julien 77ddbbb9c8 counters: regular counter get local API update 5 months ago
Victor Julien 78da4cfcae counters: regular counter Incr API update 5 months ago
Victor Julien 045142a1f1 counters: regular counter Set API update 5 months ago
Victor Julien c27d0b4192 counters: remove ThreadVars from sync API 5 months ago
Victor Julien 444166ec84 counters: move regular counter id to dedicated type 5 months ago
Victor Julien 7807b47ca0 pfring: update thread count callback to match API change
Use uint16_t internally and in parsing as well.
7 months ago
Jason Ish 9d5158594f util-device: break into public and private definitions
util-device.h exposes some details that are particularly problematic
for C++, even when wrapped in 'extern "C"'. To address this, break the
header into public and private parts. The public part exposes
LiveDevice as an opaque data structure, while the private header has
the actual definition.

The idea is that only Suricata C source files should include the
private header, it should not be re-included in any other header
file. And this is the header library users should use, however we
don't enforce it with tecnical means, a library user could still
include the private header, but the clue there is in the name.
12 months ago
Jason Ish 813eb27b95 rust/conf: use generated bindings to SCConf API 1 year ago
Jason Ish 22b77b0c56 conf: prefix conf API with SC 1 year ago
Philippe Antoine c164cfcf6b plugins: check version for all plugins 1 year ago
Victor Julien 96a0ffadde packetpool: allow larger max-pending-packets
Original limit was due to a specific data structure.
2 years ago
Jason Ish 79df4b4c89 pf-ring: add as plugin
Ticket: #7162
2 years ago