Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,10 @@ jobs:
- run: make install-headers
- run: make install-library

- run: TZ="UTC" ./src/suricata -u -U LogCustomFormatTest01
- run: TZ="Brazil/East" ./src/suricata -u -U LogCustomFormatTest01
- run: TZ="Saskatchewan/Regina" ./src/suricata -u -U LogCustomFormatTest01

ubuntu-24-04-rust-vars:
name: Ubuntu 24.04 (RUSTC+CARGO vars)
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@

# enable qa-simulation mode -- disabled by default
AC_ARG_ENABLE(qa-simulation,
AS_HELP_STRING([--enable-qa-simulation], [Enable qa-simulation mode]))
AS_HELP_STRING([--enable-qa-simulation], [Enable qa-simulation mode]), [enable_qa_simulation=$enableval],[enable_qa_simulation=no])
AS_IF([test "x$enable_qa_simulation" = "xyes"], [
AC_DEFINE([QA_SIMULATION],[1],[Enable qa-simulation mode])
])
Expand Down
6 changes: 3 additions & 3 deletions examples/lib/live/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ int main(int argc, char **argv)
/* Register our own library run mode. At this time, the ThreadVars
* for each capture thread need to be created in the provided
* callback to meet thread synchronization requirements. */
RunModeRegisterNewRunMode(
RUNMODE_LIB, "live", "Live capture application run mode", AppRunModeSetup, NULL);
RunModeRegisterNewRunMode(RUNMODE_LIB, "live-example", "Live capture application run mode",
AppRunModeSetup, NULL);

if (!SCConfSetFromString("runmode=live", 1)) {
if (!SCConfSetFromString("runmode=live-example", 1)) {
exit(EXIT_FAILURE);
}

Expand Down
6 changes: 5 additions & 1 deletion rust/src/http2/http2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,11 @@ impl HTTP2State {
);
} else {
self.set_event(HTTP2Event::LongFrameData);
self.request_frame_size = head.length - (rem.len() as u32);
if dir == Direction::ToServer {
self.request_frame_size = head.length - (rem.len() as u32);
} else {
self.response_frame_size = head.length - (rem.len() as u32);
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions rust/src/websocket/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl WebSocketState {
(&mut self.c2s_buf, &mut self.c2s_dec)
};
let mut compress = pdu.compress;
if !buf.data.is_empty() || !pdu.fin {
if pdu.opcode < 8 && (!buf.data.is_empty() || !pdu.fin) {
if buf.data.is_empty() {
buf.compress = pdu.compress;
}
Expand All @@ -234,7 +234,7 @@ impl WebSocketState {
}
}
tx.pdu = pdu;
if tx.pdu.fin && !buf.data.is_empty() {
if tx.pdu.opcode < 8 && tx.pdu.fin && !buf.data.is_empty() {
// the final PDU gets the full reassembled payload
compress = buf.compress;
std::mem::swap(&mut tx.pdu.payload, &mut buf.data);
Expand Down
2 changes: 1 addition & 1 deletion src/log-cf-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static int LogCustomFormatTest01(void)
tm.tm_year = 114;
tm.tm_wday = 1;
tm.tm_yday = 13;
tm.tm_isdst = 0;
tm.tm_isdst = -1;
SCTime_t ts = SCTIME_FROM_SECS(mktime(&tm));

MemBuffer *buffer = MemBufferCreateNew(62);
Expand Down
Loading