Skip to content

Commit

Permalink
stream: apply clang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
inashivb committed Dec 13, 2024
1 parent 51bc167 commit e5ebe36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/stream-tcp-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ typedef struct TcpSession_ {
int8_t data_first_seen_dir;
/** track all the tcp flags we've seen */
uint8_t tcp_packet_flags;
uint16_t urg_offset_ts; /**< SEQ offset from accepted OOB urg bytes */
uint16_t urg_offset_tc; /**< SEQ offset from accepted OOB urg bytes */
uint16_t urg_offset_ts; /**< SEQ offset from accepted OOB urg bytes */
uint16_t urg_offset_tc; /**< SEQ offset from accepted OOB urg bytes */
/* coccinelle: TcpSession:flags:STREAMTCP_FLAG */
uint32_t flags;
uint32_t reassembly_depth; /**< reassembly depth for the stream */
Expand Down
10 changes: 6 additions & 4 deletions src/stream-tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ static const char *UrgentPolicyToString(enum TcpStreamUrgentHandling pol)
return NULL;
}


/** \brief To initialize the stream global configuration data
*
* \param quiet It tells the mode of operation, if it is true nothing will
Expand Down Expand Up @@ -543,7 +542,8 @@ void StreamTcpInitConfig(bool quiet)
stream_config.urgent_policy = TCP_STREAM_URGENT_DEFAULT;
}
if (!quiet) {
SCLogConfig("stream.reassembly.urgent.policy\": %s", UrgentPolicyToString(stream_config.urgent_policy));
SCLogConfig("stream.reassembly.urgent.policy\": %s",
UrgentPolicyToString(stream_config.urgent_policy));
}
if (stream_config.urgent_policy == TCP_STREAM_URGENT_OOB) {
const char *temp_urgoobpol = NULL;
Expand All @@ -556,13 +556,15 @@ void StreamTcpInitConfig(bool quiet)
} else if (strcmp(temp_urgoobpol, "gap") == 0) {
stream_config.urgent_oob_limit_policy = TCP_STREAM_URGENT_GAP;
} else {
FatalError("stream.reassembly.urgent.oob-limit-policy: invalid value '%s'", temp_urgoobpol);
FatalError("stream.reassembly.urgent.oob-limit-policy: invalid value '%s'",
temp_urgoobpol);
}
} else {
stream_config.urgent_oob_limit_policy = TCP_STREAM_URGENT_DEFAULT;
}
if (!quiet) {
SCLogConfig("stream.reassembly.urgent.oob-limit-policy\": %s", UrgentPolicyToString(stream_config.urgent_oob_limit_policy));
SCLogConfig("stream.reassembly.urgent.oob-limit-policy\": %s",
UrgentPolicyToString(stream_config.urgent_oob_limit_policy));
}
}

Expand Down

0 comments on commit e5ebe36

Please sign in to comment.