Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ips delayed v1.4 #36

Closed
wants to merge 4 commits into from
Closed

Ips delayed v1.4 #36

wants to merge 4 commits into from

Conversation

regit
Copy link
Contributor

@regit regit commented Aug 27, 2012

Unittest are now running correctly. The fix was a real one.

If the loop is breaked, this means we've got a treatment error. We
don't need to reconnect but we must exit with correct status.
This patch modifies the init of Detect threads. They are now started
with a dummy function and their initialisation is done after the
signatures are loaded. Just after this, the dummy function is switched
to normal one.

In IPS mode, this permit to route packets without waiting for the
signature to start and should fix OISF#488.

Offline mode such as pcap file don't use this mode to be sure to
analyse all packets in the file.

The patch introduces a "delayed-detect" configuration variable
under detect-engine. It can be used to restore previous behavior
(set to "no" to have signature loaded first).
This patch add a early exit condition to the body handling callback.
This permits to avoid to avoid a complex system to handle htp
object change.
This patch converts the series of variable to an atomic.

Furthermore, as the callbacks are now always run, it is not
necessary anymore to refuse a ruleswap if HTP parameters are
changing.
@regit
Copy link
Contributor Author

regit commented Aug 27, 2012

Fixed. I've updated 7cc4344 to use an atomic for SlotFunc.

@regit regit closed this Aug 27, 2012
cccs-rtmorti referenced this pull request in cccs-rtmorti/suricata Jun 9, 2021
Use new htp_conn_next_log and htp_log fns

Approved-by: Todd Mortimer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants