Philippe Antoine
af246ae7ab
http: do not use a loop to find the tx count
...
As we want the last tx
Ticket: 8156
The generic function AppLayerParserGetTxCnt calls for HTTP1
Transactions.size()
This function has some specific code, as we may have pre-created
a tx that we do not want to count.
This used to get the last tx by iterating over all the transactions
waiting to find the one with max index.
So, instead of using the Transactions.get function, we get the last
tx out of the VecDeque and check its index.
11 months ago
Jeff Lucovsky
9c81f817e8
rust: bindgen update
...
Issue: 7389
Update bindgen with `make update-bindgen`
11 months ago
Jason Ish
50224f2ee5
rust: fix clippy warning for unused import
...
While debug_validate_bug_on is still used, it does not need to be
imported directly, as that macro is marked with `macro_export`, making
it globally available to the crate.
11 months ago
Philippe Antoine
455b7d1b3b
rust: use snake case for applayer_register_protocol_detection
11 months ago
Philippe Antoine
b4d8aea0ae
rust: bindgen SCAppLayerRegisterProtocolDetection
...
Ticket: 7662
Changing the struct passed to it to have the minimal number
of useful fields.
11 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
11 months ago
Philippe Antoine
2349f19977
nfs: use nfsv2 procedure names with nfs_procedure keyword
...
Ticket: 5140
11 months ago
Jhonny Sousa
257ed82dbd
nfs: Fix NFSv2 STATFS procedure parsing
...
Ticket: #5140
11 months ago
Philippe Antoine
15b1bf4865
rust: bindgen SCHTPFileCloseHandleRange
...
Ticket: 7762
11 months ago
Philippe Antoine
cddbd0b906
rust: bindgen more file functions
...
Ticket: 7762
11 months ago
Philippe Antoine
327b8b04a9
rust: bindgen with default derive
...
Ticket: 7762
11 months ago
Victor Julien
80d5afe91b
pop3: AUTH command handling improvements
...
Better track the state so it's known when to expect a base64 request
message. Also better validate the base64.
Ticket: #7994 .
11 months ago
Victor Julien
2973eded56
pop3: convert to nom 8
...
Ticket: #8127 .
11 months ago
Victor Julien
da2db65f62
pop3: rustfmt
11 months ago
Jason Ish
83d8b1d2f8
quic: update to nom 8.0
...
Ticket: #8140
11 months ago
Philippe Antoine
32ce3d29be
detect/krb: use flag u32 for krb5_msg_type
11 months ago
Jason Ish
a9eee5dfd9
rust/htp: convert to nom 8
...
Ticket: #8090
12 months ago
Jason Ish
ef9cd7beff
rust/smb: convert to nom 8
...
Ticket: #8089
12 months ago
Jason Ish
02045e1d62
rust/dcerpc: convert to nom 8
...
Ticket: #8093
12 months ago
Jason Ish
25c98af0e8
rust/detect: convert remaining detection rule parsers to nom 8
...
Ticket: #8051
12 months ago
Jason Ish
dea3f9e260
rust/detect: convert error.rs and dependent parsers to nom 8
...
Ticket: #8051
12 months ago
Jason Ish
efc32dea41
rust/detect: convert uint nom 8
...
And users of uint directly impacted by this change.
Ticket: #8051
12 months ago
Jason Ish
cf604751de
rust/util: convert to nom 8
...
Ticket: #8088
12 months ago
Jason Ish
1e01d5adca
rust/conf: convert to nom 8
...
Ticket: #8087
12 months ago
Jason Ish
c6e8932740
rust/asn1: convert to nom 8
...
Ticket: #8086
12 months ago
Jason Ish
59f8fb30a8
rust/ftp: fix clippy warning
...
error: implicitly casting the result of `from_raw_parts_mut` to `*mut [u8]`
--> src/ftp/response.rs:107:31
12 months ago
Philippe Antoine
cba13ed9b1
rust: bindgen functions needed for datasets
...
Ticket: 7762
12 months ago
Philippe Antoine
12892ba010
rust: bindgen functions neede for features
...
Ticket: 7762
12 months ago
Jeff Lucovsky
e1bf5cb1f3
nfs: Support EXCLUSIVE4_1 flag
...
Issue: 8006
Support the EXCLUSIVE4_1 create mode added to NFS 4.1
12 months ago
Philippe Antoine
79e66f76e6
detect: icmp_id is now a generic integer
...
Ticket: 7889
12 months ago
Philippe Antoine
85fa894425
detect: dnp3.func is now a generic integer
...
Ticket: 7889
12 months ago
Philippe Antoine
f2b6540c52
htp: bound decompression
...
Ticket: 7980
Usage of Vec<u8> instead of Box<u8> gave the ability to callers
to grow the buffer (indefinitely)
This was regressed in 16fee33368
Additionnaly, use rust WriteZero instead of WouldBlock as a more
fitting error when cursor is full, as that error kind is the
one tested by callers.
12 months ago
Philippe Antoine
c61f1cb6d0
detect/integers: rename index all1 to all
...
And all to all_or_absent
Ticket: 7929
12 months ago
Philippe Antoine
eb5a2d646b
detect/vlan: move vlan.id keyword to generic integer
...
Ticket: 7929
12 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
12 months ago
Philippe Antoine
439f96dea7
rust: bindgen frames functions
...
Ticket: 7667
12 months ago
Philippe Antoine
92c7be1cb6
rust: bindgen SCSRepCatGetByShortname
...
Ticket: 7667
12 months ago
Philippe Antoine
7447651fa0
output/jsonbuilder: helper function SCJbSetPrintAsciiString
...
To replace C PrintStringsToBuffer and avoid a stack alloc
+ copy
Ticket: 8004
1 year ago
Li Heng
1106323ae1
rust/sip: delete redundant computing codes
...
Delete call of is_alphanumeric where is_alphanumeric and
is_token_char are called together. Four places are modified.
Ticket: 8003
1 year ago
Jason Ish
1efe70a234
rust/ike: convert to nom 8
...
Ticket: #8050
1 year ago
Jason Ish
f368324e87
rust/mime: convert to nom 8
...
Ticket: #8048
1 year ago
Jason Ish
c5ef615953
rust/mqtt: convert to nom 8
...
Ticket: #8047
1 year ago
Jason Ish
2289069f74
rust/websocket: convert to nom 8
...
Ticket: #8046
1 year ago
Jason Ish
9eeefd0684
rust/bt-dht: convert to nom 8
...
Ticket: #8045
1 year ago
Jason Ish
399f96b07d
rust/rdp: convert to nom 8
...
Ticket: #8044
1 year ago
Jason Ish
7c70f74942
rust/telnet: convert to nom 8
...
Ticket: #8043
1 year ago
Jason Ish
2ff2eb1325
rust/ssh: convert to nom 8
...
Ticket: #8042
1 year ago
Jason Ish
baa22287b8
rust/rfb: convert to nom 8
...
Ticket: #8041
1 year ago
Jason Ish
dcfe247467
rust/pgsql: convert to nom 8
...
Ticket: #8039
1 year ago
Jason Ish
d25286e77a
rust/enip: convert to nom 8
...
Ticket: #8038
1 year ago