Jason Ish
d4dc8be3b2
rust: bindgen flow lifecycle callbacks
...
Ticket: #8446
2 months ago
Philippe Antoine
3d56472d16
detect: bindgen more functions
...
To prepare to move dcerpc.stub_data keyword to full rust
2 months ago
Philippe Antoine
a36af353bc
rust: bindgen SCFlowGetAppProtocol
3 months ago
Philippe Antoine
8f824458c2
detect: helper for buffer register requires progress
...
Ticket: 8395
For protocols where tx are complete at start, that is
the `tx_get_progress` function returns 1 inconditionnally,
we can use the progress 1, not losing time on detection in ips
mode, and getting ready for firewall mode
For the other protocols (where a tx needs both a request and response
for instance), keep progress 0 as was the case before
3 months ago
Philippe Antoine
d14af54b3b
detect/transforms: constify some callbacks arguments
...
Ticket: 8298
3 months ago
Philippe Antoine
4f4912c042
rust: bindgen SIGMATCH_ constants
3 months ago
Jason Ish
f6b11ac855
output-eve: finish exposing to bindgen
...
As all out output-eve.h is now exposed, merge output-eve.h and
output-eve-bindgen.h back into one file, output-eve.h.
5 months ago
Jason Ish
f79158ae55
rust/sys: generate jsonbuilder bindings in sys
...
Bindgen the Rust bindings to the C JsonBuilder API along with the rest
of the Rust bindings to C. Breaking it out was probably the wrong
idea.
This should make it easier, and more correct to bindgen C functions
that use SCJsonBuilder types.
5 months ago
Jason Ish
2d0bf9a2ed
output-eve: bindgen SCEveFileType callback types
5 months ago
Jason Ish
e9611a4d7c
output-eve: bindgen SCRegisterEveFileType to Rust
...
Used by Rust output plugins.
5 months ago
Jason Ish
1b182025bc
output-eve: expose SCEveFileType to Rust with bindgen
...
There is an unfortunate side-affect that one has to read
output-eve-bindgen.h for the documentation on this type, however, I
think we can resolve that in time.
5 months ago
Philippe Antoine
df495d7e22
rust: bindgen SCDetectGetLastSMFromLists
...
to use it from rust keywords
5 months ago
Victor Julien
a2e9ac21f8
flow: turn flags field into uint64_t
...
Entire space is used.
5 months ago
Jason Ish
c7f806a728
rust/sys: allow unknown lints
...
allow(unpredictable_function_pointer_comparisons) is needed on newer
versions of Rust, but is unknown to our MSRV, so for now, allow unknown
lints.
5 months ago
Philippe Antoine
364d2c077d
rust: bindgen SCAppLayerRegisterParser
...
Ticket: 7662
5 months ago
Philippe Antoine
8857b78f6a
rust: move AppLayerTxData definition to C
...
and bindgen it to rust
Will make easier the bindgen of RustParser structure which uses
a callback which uses AppLayerTxData
Move also the free function to C SCAppLayerTxDataCleanup
As suricata-sys crate defines AppLayerTxData for rust,
It must itself implement the Drop trait, and thus,
We need to define a feature surest
5 months ago
Philippe Antoine
8eaced3c1e
rust: move AppLayerResult definition to C
...
and bindgen it to rust
Will make easier the bindgen of RustParser structure which uses
a callback which uses AppLayerResult
Keep From<> impl in sys crate that defines it
5 months ago
Philippe Antoine
06f78b2a22
rust: move StreamSlice definition to C
...
and bindgen it to rust
Will make easier the bindgen of RustParser structure which uses
a callback which uses StreamSlice
5 months ago
Philippe Antoine
41f543ca35
rust: move AppLayerGetTxIterTuple definition to C
...
and bindgen it to rust
Will make easier the bindgen of RustParser structure which uses
a callback which uses AppLayerGetTxIterTuple
5 months ago
Philippe Antoine
64d29fcd1c
rust: move AppLayerStateData definition to C
...
and bindgen it to rust, and use default trait instead of new
Will make easier the bindgen of RustParser structure which uses
a callback which uses AppLayerStateData
5 months ago
Philippe Antoine
76efb8af4d
rust: move AppLayerGetFileState definition to C
...
and bindgen it to rust.
Will make easier the bindgen of RustParser structure which uses
a callback which uses AppLayerGetFileState
5 months ago
Philippe Antoine
fc23e54c6d
rust: bindgen with derive eq
...
As will be needed such as AppLayerTxData
5 months ago
Philippe Antoine
7dbe033ae0
app-layer: function to register ci pattern + probe
...
Ticket: 6591
5 months ago
Philippe Antoine
2cf9a327d5
detect/ssh: move ssh.hassh to rust
...
Introduces helper SCDetectRegisterBufferLowerMd5Callbacks
5 months ago
Philippe Antoine
83360cfce0
detect/ssh: move ssh.hassh string to rust
...
bindgen needed SCSigMatchSilentErrorEnabled on the way
5 months ago
Philippe Antoine
ea8ac2a02a
detect/ssh: move ssh.software to rust
...
Adds helper function SCDetectHelperBufferProgressMpmRegister on the way
6 months ago
Philippe Antoine
c0d6747e82
app-layer: GetTxIteratorFn uses a AppLayerGetTxIterState
...
Even if every current rust parser uses the u64 variant of the C union
6 months ago
Philippe Antoine
4b541b39f2
rust: move AppLayerEventType definition to C
...
and bindgen it to rust.
Will make easier the bindgen of RustParser structure which uses
a callback which uses AppLayerEventType
6 months ago
Lukas Sismis
3e4fdb2118
misc: time unit parsing function
6 months ago
Jason Ish
d89b35db56
conf: add SCConfNodeChildValueIsFalse to check for false value
...
New function to check is a value is actually set to a false value.
7 months ago
Jeff Lucovsky
9c81f817e8
rust: bindgen update
...
Issue: 7389
Update bindgen with `make update-bindgen`
7 months ago
Philippe Antoine
b4d8aea0ae
rust: bindgen SCAppLayerRegisterProtocolDetection
...
Ticket: 7662
Changing the struct passed to it to have the minimal number
of useful fields.
7 months ago
Philippe Antoine
1329786f84
detect: new command line option : list-rule-protos
...
To list the protocols we can use a in a rule header
Ticket: 635
7 months ago
Philippe Antoine
15b1bf4865
rust: bindgen SCHTPFileCloseHandleRange
...
Ticket: 7762
7 months ago
Philippe Antoine
cddbd0b906
rust: bindgen more file functions
...
Ticket: 7762
7 months ago
Philippe Antoine
327b8b04a9
rust: bindgen with default derive
...
Ticket: 7762
7 months ago
Philippe Antoine
cba13ed9b1
rust: bindgen functions needed for datasets
...
Ticket: 7762
8 months ago
Philippe Antoine
12892ba010
rust: bindgen functions neede for features
...
Ticket: 7762
8 months ago
Li Heng
c141c55bc6
snmp: can be set to detection-only
...
Realloc alp_ctx.ctxs when a dynamic alproto is registered and
g_alproto_max increases. So dynamic alproto can be treated as
real/normal ones. And app-layer switch can be set to any value
of no/deteciton-only/yes.
Ticket: 8000
8 months ago
Philippe Antoine
439f96dea7
rust: bindgen frames functions
...
Ticket: 7667
8 months ago
Philippe Antoine
92c7be1cb6
rust: bindgen SCSRepCatGetByShortname
...
Ticket: 7667
8 months ago
Philippe Antoine
7447651fa0
output/jsonbuilder: helper function SCJbSetPrintAsciiString
...
To replace C PrintStringsToBuffer and avoid a stack alloc
+ copy
Ticket: 8004
8 months ago
Philippe Antoine
2e9027fd5a
plugins: update SC_API_VERSION to 9
...
So that plugins built for 8 will fail to load with 9 as there
were already breaking changes in the structures and functions
prototypes
9 months ago
Philippe Antoine
dc7874b2ac
rust: bindgen more http range functions used in http2
...
Ticket: 7667
9 months ago
Philippe Antoine
842352c190
rust: bindgen SCHttpRangeFreeBlock
...
Ticket: 7667
9 months ago
Philippe Antoine
93785ae357
rust: bindgen SCHTTP2MimicHttp1Request
...
Ticket: 7667
9 months ago
Philippe Antoine
958344787f
rust: bindgen FileAppendData
...
Ticket: 7667
9 months ago
Philippe Antoine
811d28cc6b
rust: bindgen util-spm-bs.h
...
for SCBasicSearchNocaseIndex
Ticket: 7667
9 months ago
Philippe Antoine
828a6bdbf8
rust: bindgen SCLogMessage
...
Ticket: 7667
10 months ago
Philippe Antoine
cc845dccdb
rust: bindgen GenericVarFree
...
Ticket: 7667
10 months ago