stream: reduce scope of inline drop check

pull/8529/head
Victor Julien 4 years ago
parent 288086af3f
commit b31617c060

@ -325,13 +325,12 @@ static void StreamTcpSessionPoolCleanup(void *s)
}
}
/**
/** \internal
* \brief See if stream engine is dropping invalid packet in inline mode
*
* \retval 0 no
* \retval 1 yes
* \retval false no
* \retval true yes
*/
int StreamTcpInlineDropInvalid(void)
static inline bool StreamTcpInlineDropInvalid(void)
{
return ((stream_config.flags & STREAMTCP_INIT_FLAG_INLINE)
&& (stream_config.flags & STREAMTCP_INIT_FLAG_DROP_INVALID));

@ -200,7 +200,6 @@ void StreamTcpSessionCleanup(TcpSession *ssn);
void StreamTcpStreamCleanup(TcpStream *stream);
/* check if bypass is enabled */
int StreamTcpBypassEnabled(void);
int StreamTcpInlineDropInvalid(void);
int StreamTcpInlineMode(void);
int TcpSessionPacketSsnReuse(const Packet *p, const Flow *f, const void *tcp_ssn);

Loading…
Cancel
Save