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 * \brief See if stream engine is dropping invalid packet in inline mode
* * \retval false no
* \retval 0 no * \retval true yes
* \retval 1 yes
*/ */
int StreamTcpInlineDropInvalid(void) static inline bool StreamTcpInlineDropInvalid(void)
{ {
return ((stream_config.flags & STREAMTCP_INIT_FLAG_INLINE) return ((stream_config.flags & STREAMTCP_INIT_FLAG_INLINE)
&& (stream_config.flags & STREAMTCP_INIT_FLAG_DROP_INVALID)); && (stream_config.flags & STREAMTCP_INIT_FLAG_DROP_INVALID));

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

Loading…
Cancel
Save