]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
5 years agorust/rdp: Fix use of incorrect buffer 5276/head
Jeff Lucovsky [Wed, 5 Aug 2020 13:56:58 +0000 (09:56 -0400)] 
rust/rdp: Fix use of incorrect buffer

This commit updates the connection confirmation parsing function to use
the correct buffer when determining the packet type.

5 years agosmb: use uuid crate
Shivani Bhardwaj [Wed, 5 Aug 2020 11:54:09 +0000 (17:24 +0530)] 
smb: use uuid crate

5 years agorust: only run cbindgen if needed
Jason Ish [Wed, 17 Jun 2020 22:44:28 +0000 (16:44 -0600)] 
rust: only run cbindgen if needed

Only run cbindgen when necessary. This is a bit tricky. When
building a dist we want to unconditionally build the headers.

When going through a "make; sudo make install" type process,
cbindgen should not be run as the headers already exist, are
valid, and the environment under sudo is more often than
not suitable to pick up the Rust toolchains when installed
with rustup.

For the normal "make" case we have the gen/rust-bindings.h file
depend on library file, this will cause it to only be rebuilt
if the code was modified.

For "make dist" we unconditionally create "dist/rust-bindings.h".
This means the generated file could be in 2 locations, so update
configure.ac, and the library search find to find it.

The "gen/rust-bindings.h" should be picked up first if it exists,
for those who develop from a dist archive where "dist/rust-bindings.h"
also exists.

Not completely happy having the same file in 2 locations, but not
sure how else to get the dependency tracking correct.

5 years agoalert/eve: add snmp metadata for rdp alerts
Jason Ish [Tue, 4 Aug 2020 22:27:30 +0000 (16:27 -0600)] 
alert/eve: add snmp metadata for rdp alerts

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/3441

5 years agoalert/eve: add snmp metadata for snmp alerts
Jason Ish [Tue, 4 Aug 2020 21:35:07 +0000 (15:35 -0600)] 
alert/eve: add snmp metadata for snmp alerts

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/3441

5 years agodcerpc: handle gap for TCP streams 5270/head
Shivani Bhardwaj [Thu, 25 Jun 2020 20:02:59 +0000 (01:32 +0530)] 
dcerpc: handle gap for TCP streams

5 years agodns: add tailing data to split tcp unit test 5266/head
Jason Ish [Tue, 4 Aug 2020 19:50:26 +0000 (13:50 -0600)] 
dns: add tailing data to split tcp unit test

Add trailing data to the complete payload to test the case
where data is consumed, but still incomplete.

5 years agodns: fix subtraction overflow in debug message
Jason Ish [Tue, 4 Aug 2020 19:47:19 +0000 (13:47 -0600)] 
dns: fix subtraction overflow in debug message

The math for the return value wasn't updated in the debug log
to match the logic and could lead to a subtraction overflow

5 years agodns: return status from parsing tcp request
Philippe Antoine [Thu, 30 Jul 2020 15:23:48 +0000 (17:23 +0200)] 
dns: return status from parsing tcp request

5 years agodns: fix incomplete results
Philippe Antoine [Thu, 30 Jul 2020 14:32:40 +0000 (16:32 +0200)] 
dns: fix incomplete results

and messages parsing whose length is >= 32768

5 years agopcap: recusively reading pcaps / documentation 5265/head
James Dutrisac [Tue, 28 Jul 2020 17:10:42 +0000 (13:10 -0400)] 
pcap: recusively reading pcaps / documentation

Changes to doc/userguide/partials/options.rst for feature 2363
   (reading pcaps recursively)

5 years agopcap: read directories recursively
James Dutrisac [Tue, 28 Jul 2020 17:09:48 +0000 (13:09 -0400)] 
pcap: read directories recursively

Describe Changes
- Added ability to recursively read pcap directories
- src/suricata.c: addition of new command line parameter
    --pcap-file-recursive
- src/source-pcap-file.c: parsing of the command line argument
- src/source-pcap-file-directory-helper.h: two thread vars tracking
    directory depth and should recurse
- src/util-error.c / src/util-error.h:
   Added new warning code "SC_WARN_PATH_READ_ERROR"
- Redmine ticket: https://redmine.openinfosecfoundation.org/issues/2363

Ticket: #2363

5 years agopath: introduce path handling util funcs
James Dutrisac [Tue, 28 Jul 2020 17:08:29 +0000 (13:08 -0400)] 
path: introduce path handling util funcs

This commit provides changes to util-path.c and util-path.h
to support the recursive reading of directories. It adds
4 functions.
- SCIsRegularFile to provide OS independent file info.
- SCIsRegularDirectory to provide OS independent directory info.
- SCRealPath is an OS independent wrapper for realpath.
- PathJoin to manage path resolution logic.

5 years agostream/app-layer: break loop on proto change
Philippe Antoine [Fri, 31 Jul 2020 06:56:37 +0000 (08:56 +0200)] 
stream/app-layer: break loop on proto change

5 years agodatasets: fix null pointer deref
Shivani Bhardwaj [Mon, 3 Aug 2020 16:43:59 +0000 (22:13 +0530)] 
datasets: fix null pointer deref

5 years agodatasets: Init even in socket mode
Shivani Bhardwaj [Mon, 3 Aug 2020 16:41:40 +0000 (22:11 +0530)] 
datasets: Init even in socket mode

Closes redmine ticket 3476.

5 years agodetect-mqtt: unify error handling in rule parsing
Sascha Steinbiss [Mon, 3 Aug 2020 08:27:26 +0000 (10:27 +0200)] 
detect-mqtt: unify error handling in rule parsing

This is meant to provide a single path to the error case.
This might help make things more clear for static
checkers.

5 years agodetect-engine: initialize struct fields
Sascha Steinbiss [Mon, 3 Aug 2020 08:26:04 +0000 (10:26 +0200)] 
detect-engine: initialize struct fields

5 years agohttp: merge duplicated code
Philippe Antoine [Tue, 19 May 2020 12:01:25 +0000 (14:01 +0200)] 
http: merge duplicated code

HtpRequestBodyHandlePUT and HtpRequestBodyHandlePOST

5 years agohttp: use more precise parameter in HtpRequestBodySetupMultipart
Philippe Antoine [Tue, 19 May 2020 11:59:56 +0000 (13:59 +0200)] 
http: use more precise parameter in HtpRequestBodySetupMultipart

So that we can see that it does not have to handle gaps

5 years agohttp: remove unused code
Philippe Antoine [Tue, 19 May 2020 11:58:38 +0000 (13:58 +0200)] 
http: remove unused code

HtpRequestBodySetupPUT function
So that we can see that we do not use data=NULL in there

5 years agofile: handles gaps natively
Philippe Antoine [Tue, 19 May 2020 11:55:41 +0000 (13:55 +0200)] 
file: handles gaps natively

ie data=NULL and len>0 parameters

5 years agoutil: PrintRawDataFp handles null
Philippe Antoine [Tue, 19 May 2020 11:50:24 +0000 (13:50 +0200)] 
util: PrintRawDataFp handles null

for gaps which are data=NULL and len>0

5 years agofiles: rust closes files even on 0 length chunk
Philippe Antoine [Wed, 1 Jul 2020 18:14:27 +0000 (20:14 +0200)] 
files: rust closes files even on 0 length chunk

5 years agoapplayer: allow rust parsers to have only one probe
Philippe Antoine [Fri, 13 Mar 2020 08:37:56 +0000 (09:37 +0100)] 
applayer: allow rust parsers to have only one probe

5 years agooutput-json: add MAC address output 5258/head
Sascha Steinbiss [Mon, 2 Mar 2020 18:10:30 +0000 (19:10 +0100)] 
output-json: add MAC address output

This commit adds MAC address output to the EVE-JSON format. We follow the
remarks made in Redmine ticket #962: for packets, log MAC src/dst as a
scalar field in EVE; for flows, log MAC src/dst as lists in EVE. Field names
are different between flow and packet context to avoid type confusion
(src_mac vs. src_macs). Configuration approach and JSON representation is
taken from previous GitHub PR #2700.

5 years agooutput/anomaly: Restrict anomaly logger count
Jeff Lucovsky [Sat, 1 Aug 2020 13:45:04 +0000 (09:45 -0400)] 
output/anomaly: Restrict anomaly logger count

This commit restricts the anomaly logger count. The restriction is
necessary due to state maintenance in the logger that doesn't scale
beyond a single logger.

Until that issue's solved, when multiple anomaly loggers are configured,
an error message will be emitted to highlight the restriction.

5 years agosignature: checks for integer overflow in limits propagation
Philippe Antoine [Thu, 23 Jul 2020 09:26:16 +0000 (11:26 +0200)] 
signature: checks for integer overflow in limits propagation

5 years agoeve/yaml: move mqtt down
Victor Julien [Sun, 2 Aug 2020 18:23:29 +0000 (20:23 +0200)] 
eve/yaml: move mqtt down

5 years agofuzz/pcap: enable MQTT parser
Victor Julien [Sun, 2 Aug 2020 18:23:08 +0000 (20:23 +0200)] 
fuzz/pcap: enable MQTT parser

5 years agodatasets: reload static sets
Shivani Bhardwaj [Mon, 27 Jul 2020 13:47:10 +0000 (19:17 +0530)] 
datasets: reload static sets

5 years agorust/mqtt: add MQTT parser
Sascha Steinbiss [Mon, 4 May 2020 13:29:23 +0000 (15:29 +0200)] 
rust/mqtt: add MQTT parser

5 years agodetect: adds engine for u8 keywords
Philippe Antoine [Fri, 3 Apr 2020 07:16:24 +0000 (09:16 +0200)] 
detect: adds engine for u8 keywords

5 years agodoc/output: Document multithreaded eve option
Jeff Lucovsky [Thu, 30 Jul 2020 11:08:12 +0000 (07:08 -0400)] 
doc/output: Document multithreaded eve option

5 years agooutput/json: Multi-threaded EVE logging support
Jeff Lucovsky [Tue, 28 Jul 2020 13:09:27 +0000 (09:09 -0400)] 
output/json: Multi-threaded EVE logging support

This commit modifies the JSON loggers with changes necessary to support
multi-threaded EVE output.

Each "thread-init" function sets up the per-thread log file context for
subsequent calls to the JSON output to buffer function.

5 years agolog: Support multi-threaded eve output.
Jeff Lucovsky [Tue, 28 Jul 2020 13:03:05 +0000 (09:03 -0400)] 
log: Support multi-threaded eve output.

5 years agooutput: Check for fwrite_unlocked
Jeff Lucovsky [Wed, 29 Jul 2020 13:56:55 +0000 (09:56 -0400)] 
output: Check for fwrite_unlocked

This commit creates a macro for fwrite_unlocked which is probed during
configuration time.

5 years agooutput: Correct typos
Jeff Lucovsky [Tue, 28 Jul 2020 12:39:39 +0000 (08:39 -0400)] 
output: Correct typos

5 years agooutput: Remove unused variables/define
Jeff Lucovsky [Tue, 28 Jul 2020 13:34:59 +0000 (09:34 -0400)] 
output: Remove unused variables/define

5 years agolog: remove unused include files
Jeff Lucovsky [Tue, 28 Jul 2020 12:16:12 +0000 (08:16 -0400)] 
log: remove unused include files

5 years agooutput/flow: Eliminate unnecessary parameter
Jeff Lucovsky [Sun, 26 Jul 2020 18:21:18 +0000 (14:21 -0400)] 
output/flow: Eliminate unnecessary parameter

This commit removes a parameter to an internal-only function call.
Removing the parameter allows an JSON builder optimization to be used.

5 years agooutput/netflow: Eliminate unneeded parameter
Jeff Lucovsky [Sun, 26 Jul 2020 18:19:53 +0000 (14:19 -0400)] 
output/netflow: Eliminate unneeded parameter

This commit changes an internal-only function to remove a parameter
that's invariant in all use cases. This allows an JSON builder
optimization to be used.

5 years agotransform: adds url_decode keyword
Philippe Antoine [Wed, 6 Nov 2019 10:23:35 +0000 (11:23 +0100)] 
transform: adds url_decode keyword

Fixes https://redmine.openinfosecfoundation.org/issues/2689

Adds a new source file to handle this keyword.
And modifies documentation, Makefile, and registration accordingly.

url_decode decodes url-encoded data, ie replacing '+' with space
and '%HH' with its value.

5 years agostream: fix endless loop in traffic with gaps 5247/head
Victor Julien [Thu, 30 Jul 2020 12:43:03 +0000 (14:43 +0200)] 
stream: fix endless loop in traffic with gaps

5 years agoflow: avoid double state update on reuse
Victor Julien [Thu, 30 Jul 2020 11:22:15 +0000 (13:22 +0200)] 
flow: avoid double state update on reuse

Avoids an unnecessary atomic operation.

5 years agoflow: minor cleanups
Victor Julien [Thu, 30 Jul 2020 11:21:29 +0000 (13:21 +0200)] 
flow: minor cleanups

5 years agoflow: validate emergency timeout settings
Victor Julien [Fri, 10 Jul 2020 08:42:32 +0000 (10:42 +0200)] 
flow: validate emergency timeout settings

Make sure they are below the regular values.

5 years agoflow: improve performance in emergency mode
Victor Julien [Wed, 22 Jul 2020 11:50:14 +0000 (13:50 +0200)] 
flow: improve performance in emergency mode

When the flow engine enters emergency mode, 3 things happen:

1. a different set of (lower) timeout values are applied
2. the flow manager runs more often
3. worker threads go get a flow directly from the hash table

Testing showed that performance went down significantly due to concurrency
issues:

1. worker threads would fight each other over the hash access
2. flow manager would get in the way of workers

This patch changes the behavior in 2 ways:

1. it makes the flow manager slightly less aggressive. It will still
   try to run ~3 times per second, but no longer 10 times.

   This should be reducing the contention. At the same time flows
   won't time out faster if they are checked many times per second.

2. The 'get a used flow' logic optimizes the use of atomics by only
   doing an atomic operation once, and while doing so reserving
   a slice of the hash per worker.

   The worker will also give up much quicker, to avoid the overhead
   of hash walking and taking and releasing locks.

These combined changes show much better 'under stress' behavior, esp
on multi-NUMA systems.

5 years agoenip: use status for probing parser 5242/head
Philippe Antoine [Sat, 2 May 2020 18:17:35 +0000 (20:17 +0200)] 
enip: use status for probing parser

5 years agosignature: checks for integer overflow in limits propagation
Philippe Antoine [Thu, 23 Jul 2020 09:26:16 +0000 (11:26 +0200)] 
signature: checks for integer overflow in limits propagation

5 years agodetect: fix read overflow in DetectGetLastSMByListId
Philippe Antoine [Thu, 23 Jul 2020 11:28:57 +0000 (13:28 +0200)] 
detect: fix read overflow in DetectGetLastSMByListId

5 years agoeve: remove unused jansson code
Victor Julien [Tue, 28 Jul 2020 15:25:13 +0000 (17:25 +0200)] 
eve: remove unused jansson code

5 years agoeve/metadata: create preformatted json string at start up
Victor Julien [Tue, 28 Jul 2020 15:23:50 +0000 (17:23 +0200)] 
eve/metadata: create preformatted json string at start up

Avoid runtime overhead of assembling metadata json string by
pre-creating it at rule parsing time.

5 years agodetect/profile: convert match dumps to jsonbuilder
Victor Julien [Tue, 28 Jul 2020 13:14:22 +0000 (15:14 +0200)] 
detect/profile: convert match dumps to jsonbuilder

Remove unused code and do minor misc cleanups as well.

5 years agopfring: fix compile warning 5234/head
Victor Julien [Mon, 27 Jul 2020 08:16:29 +0000 (10:16 +0200)] 
pfring: fix compile warning

5 years agoeve: remove unused json_t common functions
Victor Julien [Mon, 27 Jul 2020 17:48:08 +0000 (19:48 +0200)] 
eve: remove unused json_t common functions

These are no longer used as all callers have switched to
the JsonBuilder equivalents.

5 years agoeve/tls: minor cleanups
Victor Julien [Mon, 27 Jul 2020 17:28:22 +0000 (19:28 +0200)] 
eve/tls: minor cleanups

5 years agoeve/metadata: convert to jsonbuilder
Victor Julien [Mon, 27 Jul 2020 17:22:52 +0000 (19:22 +0200)] 
eve/metadata: convert to jsonbuilder

5 years agostream: call parser with 0 data on EOF
Victor Julien [Mon, 6 Jul 2020 10:05:08 +0000 (12:05 +0200)] 
stream: call parser with 0 data on EOF

This way both sides can call the EOF logic.

5 years agoapp-layer/tcp: don't use un-ACK'd data
Victor Julien [Mon, 6 Jul 2020 10:05:01 +0000 (12:05 +0200)] 
app-layer/tcp: don't use un-ACK'd data

Still use un-ACK'd data in unclean shutdown. This means any state
before TCP_CLOSED, or TCP_CLOSED that was caused by a RST.

5 years agoflow/timeout: flag last pseudo packet
Victor Julien [Fri, 3 Jul 2020 12:42:48 +0000 (14:42 +0200)] 
flow/timeout: flag last pseudo packet

Flag the last flow timeout pseudo packet so that we can force
TX logging w/o setting both app-layer flags.

Case this fixes:

1. flow times out when only TS TCP data received, but non of it is ACK'd.
   So there is no app-layer proto yet, or app state or Flow::alparser. So
   EOF flags can't be set.

2. Flow timeout sees no reason to create pseudo packet in TC direction.

3. TS pseudo packet finds HTTP, creates HTTP state, flag EOF TS.

4. TX logging skips HTTP logging because:
   - TC progress not reached
   - EOF TC flag not set.

The solution has been to flag the very last packet for the flow as such
and use it has a master-EOF flag.

5 years agostream/tcp: track if ssn has been closed with RST
Victor Julien [Fri, 3 Jul 2020 14:38:56 +0000 (16:38 +0200)] 
stream/tcp: track if ssn has been closed with RST

5 years agoapp-layer: set EOFs on app-layer disable
Victor Julien [Thu, 2 Jul 2020 20:31:02 +0000 (22:31 +0200)] 
app-layer: set EOFs on app-layer disable

5 years agoflow/worker: set EOF flags on change proto
Victor Julien [Thu, 2 Jul 2020 19:59:50 +0000 (21:59 +0200)] 
flow/worker: set EOF flags on change proto

5 years agoflow-timeout: set app-layer EOF flag
Victor Julien [Thu, 2 Jul 2020 19:58:48 +0000 (21:58 +0200)] 
flow-timeout: set app-layer EOF flag

5 years agoapp-layer: add debug
Victor Julien [Thu, 2 Jul 2020 19:57:04 +0000 (21:57 +0200)] 
app-layer: add debug

5 years agostream: minor debug fixup
Victor Julien [Thu, 2 Jul 2020 19:53:37 +0000 (21:53 +0200)] 
stream: minor debug fixup

5 years agoapp-layer/pd: improve size check in bail conditions
Victor Julien [Thu, 2 Jul 2020 19:25:46 +0000 (21:25 +0200)] 
app-layer/pd: improve size check in bail conditions

5 years agoapp-layer: split EOF flag per direction
Victor Julien [Tue, 16 Jun 2020 08:23:49 +0000 (10:23 +0200)] 
app-layer: split EOF flag per direction

5 years agostream: app update from loop
Victor Julien [Thu, 4 Jun 2020 19:12:15 +0000 (21:12 +0200)] 
stream: app update from loop

When the stream engine has data ready for the app-layer it will call
this API from a loop instead of just once. The loop is to ensure that
if we have a very lossy stream where between 'app_progress' and
'last_ack' there are multiple chunks of data and multiple gaps we
process all the chunks.

5 years agostream: improve gap handling with 'incomplete'
Victor Julien [Sun, 17 May 2020 12:22:59 +0000 (14:22 +0200)] 
stream: improve gap handling with 'incomplete'

Make sure stream requiring more data because of 'incomplete' records
properly move ahead if there is a GAP in the window of required data.

5 years agostream: fix IDS mode using un-ACK'd data
Victor Julien [Mon, 8 Jun 2020 13:24:00 +0000 (15:24 +0200)] 
stream: fix IDS mode using un-ACK'd data

5 years agostream: code cleanup
Victor Julien [Thu, 4 Jun 2020 18:29:53 +0000 (20:29 +0200)] 
stream: code cleanup

5 years agoflow/tcp: consider pkts established based on 3whs
Victor Julien [Wed, 25 Mar 2020 14:07:39 +0000 (15:07 +0100)] 
flow/tcp: consider pkts established based on 3whs

5 years agodetect/flow: test cleanup
Victor Julien [Wed, 25 Mar 2020 13:16:36 +0000 (14:16 +0100)] 
detect/flow: test cleanup

5 years agodetect/dns-query: Splice UT to rust
Jeff Lucovsky [Mon, 25 May 2020 15:03:23 +0000 (11:03 -0400)] 
detect/dns-query: Splice UT to rust

5 years agodns: Remove parser buffering code
Jeff Lucovsky [Mon, 11 May 2020 12:12:51 +0000 (08:12 -0400)] 
dns: Remove parser buffering code

5 years agosources: hide RegisterTests behind ifdef UNITTESTS 5216/head
Victor Julien [Fri, 24 Jul 2020 11:03:58 +0000 (13:03 +0200)] 
sources: hide RegisterTests behind ifdef UNITTESTS

Update callers.

5 years agoeve/ssh: change hassh logging format
Victor Julien [Fri, 24 Jul 2020 08:49:20 +0000 (10:49 +0200)] 
eve/ssh: change hassh logging format

Elastic search didn't accept the 'hassh' and 'hassh.string'. It would
see the first 'hassh' as a string and split the second key into a
object 'hassh' with a string member 'string'. So two different types
for 'hassh', so it rejected it.

This patch mimics the ja3(s) logging by creating a 'hassh' object
with 2 members: 'hash', which holds the md5 representation, and
'string' which holds the string representation.

5 years agoeve/ssh: minor cleanup
Victor Julien [Fri, 24 Jul 2020 08:36:55 +0000 (10:36 +0200)] 
eve/ssh: minor cleanup

5 years agodcerpc: adds invalid signature unit test
Philippe Antoine [Wed, 22 Jul 2020 19:51:40 +0000 (21:51 +0200)] 
dcerpc: adds invalid signature unit test

5 years agodcerpc: check app proto for signature keywords
Philippe Antoine [Mon, 13 Jul 2020 14:42:56 +0000 (16:42 +0200)] 
dcerpc: check app proto for signature keywords

5 years agodetect: hide RegisterTests behind ifdef UNITTESTS
Victor Julien [Tue, 21 Jul 2020 14:04:58 +0000 (16:04 +0200)] 
detect: hide RegisterTests behind ifdef UNITTESTS

Update all callers to more aggressively use UNITTESTS guards as well.

5 years agoftp: fix direction of expectation for STOR command
Xiaofan Wang [Thu, 19 Mar 2020 15:50:48 +0000 (23:50 +0800)] 
ftp: fix direction of expectation for STOR command

Fix direction in active mode.

5 years agosip: minor cleanup
Victor Julien [Tue, 21 Jul 2020 10:58:44 +0000 (12:58 +0200)] 
sip: minor cleanup

5 years agohtp: minor UNITTESTS guarding cleanup
Victor Julien [Tue, 21 Jul 2020 09:45:45 +0000 (11:45 +0200)] 
htp: minor UNITTESTS guarding cleanup

5 years agoftp: small code cleanup
Victor Julien [Sun, 20 Oct 2019 18:22:41 +0000 (20:22 +0200)] 
ftp: small code cleanup

5 years agogitignore: add .vscode and various other files
Victor Julien [Fri, 24 Jul 2020 07:54:26 +0000 (09:54 +0200)] 
gitignore: add .vscode and various other files

5 years agoftp: Restrict file name lengths 5212/head
Jeff Lucovsky [Mon, 3 Feb 2020 14:44:08 +0000 (09:44 -0500)] 
ftp: Restrict file name lengths

Restrict file name lengths to PATH_MAX - 1 to avoid over subscribing
memory to FTP file name tracking.

5 years agobytetest: use ByteExtractString instead of StringParse 5207/head
Shivani Bhardwaj [Tue, 21 Jul 2020 08:16:18 +0000 (13:46 +0530)] 
bytetest: use ByteExtractString instead of StringParse

5 years agoutil: fix trailing char check with ByteExtractString
Shivani Bhardwaj [Tue, 21 Jul 2020 07:58:06 +0000 (13:28 +0530)] 
util: fix trailing char check with ByteExtractString

5 years agossh: fixing incomplete kex parsing
Philippe Antoine [Mon, 13 Jul 2020 12:29:27 +0000 (14:29 +0200)] 
ssh: fixing incomplete kex parsing

We use the record length from the ssh record header,
and not the size of the parsed data, as is done in other places.

5 years agonfs: fix 'dangling' files in lossy sessions
Victor Julien [Mon, 20 Jul 2020 12:49:59 +0000 (14:49 +0200)] 
nfs: fix 'dangling' files in lossy sessions

In case of lossy connections the NFS state would properly clean up
transactions, including file transactions. However for files the
state was never set to 'truncated', leading to files to stay 'active'.

This would lead these files staying in the NFS's state. In long running
sessions with lots of files this would lead to performance and memory
use issues.

This patch cleans truncates the file that was being transmitted when
a file transaction is being closed.

Based on 65e9a7c31cc68bdb1fb3e1412b0a56260265c608

5 years agonfs: check post-gap timeouts once a second at most
Victor Julien [Mon, 20 Jul 2020 12:30:39 +0000 (14:30 +0200)] 
nfs: check post-gap timeouts once a second at most

Based on 25f2efe97749611760e6e26d388b420091423732

5 years agonfs: update ts only if it changed
Victor Julien [Mon, 20 Jul 2020 12:18:52 +0000 (14:18 +0200)] 
nfs: update ts only if it changed

Based on 8aa380600da15b95e74a6649e6003a1c484c4ce0

5 years agordp: remove parser buffering code
Zach Kelly [Sat, 18 Jul 2020 01:00:54 +0000 (21:00 -0400)] 
rdp: remove parser buffering code

5 years agordp/eve: convert to jsonbuilder
Zach Kelly [Sat, 18 Jul 2020 00:58:48 +0000 (20:58 -0400)] 
rdp/eve: convert to jsonbuilder

5 years agordp: rustfmt (update)
Zach Kelly [Sat, 18 Jul 2020 00:57:08 +0000 (20:57 -0400)] 
rdp: rustfmt (update)

5 years agothreads/runmode: Changes to thread config behaviour
Joshua Lumb [Fri, 17 Jul 2020 13:29:20 +0000 (09:29 -0400)] 
threads/runmode: Changes to thread config behaviour

5 years agogh-checks: Add enable-debug-validation to test 5190/head
Shivani Bhardwaj [Wed, 20 May 2020 19:57:46 +0000 (01:27 +0530)] 
gh-checks: Add enable-debug-validation to test