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

Next/20200711/v4 #5168

Closed
wants to merge 54 commits into from
Closed

Conversation

victorjulien
Copy link
Member

#5167
#5166 with minor fixup (removing an assert)
#5153
#5152

PRScript output (if applicable):

#suricata-verify-pr: 271
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch:

jlucovsky and others added 30 commits July 11, 2020 08:36
Replaces all patterns of SCLogError() followed by exit() with
FatalError(). Cocci script to do this:

@@
constant C;
constant char[] msg;
@@

- SCLogError(C,
+ FatalError(SC_ERR_FATAL,
  msg);
- exit(EXIT_FAILURE);

Closes redmine ticket 3188.
Some changes were made to the generated files instead of the
generator script. Update the script to generate what is
in the current state of the in-tree generated files.
First step of converting DNP3 to JsonBuilder by first converting
the non-generated code.
New methods for setting and appending float values.
Migration from Jansson to JsonBuilder.
This way the AppLayerTxData is set up from the start. Any type of
processing (logging, detection) will lead to setting up the user
data later on anyway.

Remove other places where it was added.
AppLayerTxData is a structure each tx should include that will contain
the common fields the engine needs for tracking logging, detection and
possibly other things.

AppLayerTxConfig will be used by the detection engine to configure
the transaction.
Optional callback a parser can register for applying configuration
to the 'transaction'. Most parsers have a bidirectional tx. For those
parsers that have different types of transaction handling, this new
callback can be used to properly apply the config.
victorjulien and others added 5 commits July 11, 2020 08:37
Http parser can have 'NULL' user data in case of memcap limit getting
reached.
Allow app-layer to declare the txs are uni-directional and special
care is needed for applying config.
Apply config to newly created response TX.
@victorjulien victorjulien requested review from jasonish, norg and a team as code owners July 11, 2020 13:20
@victorjulien victorjulien deleted the next/20200711/v4 branch July 17, 2020 04:02
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 1, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 1, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 1, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 1, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 1, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 1, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 2, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 2, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
inashivb pushed a commit to inashivb/suricata that referenced this pull request Mar 3, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 259bd8a)
inashivb pushed a commit to inashivb/suricata that referenced this pull request Mar 3, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 79b7b7a)
inashivb pushed a commit to inashivb/suricata that referenced this pull request Mar 4, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 259bd8a)
inashivb pushed a commit to inashivb/suricata that referenced this pull request Mar 4, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 79b7b7a)
jlucovsky pushed a commit to jlucovsky/suricata that referenced this pull request Mar 16, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 259bd8a)
jlucovsky pushed a commit to jlucovsky/suricata that referenced this pull request Mar 16, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 79b7b7a)
jlucovsky pushed a commit to jlucovsky/suricata that referenced this pull request Mar 16, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 259bd8a)
jlucovsky pushed a commit to jlucovsky/suricata that referenced this pull request Mar 16, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 79b7b7a)
jlucovsky pushed a commit to jlucovsky/suricata that referenced this pull request Mar 16, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 259bd8a)
jlucovsky pushed a commit to jlucovsky/suricata that referenced this pull request Mar 16, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 79b7b7a)
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 21, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 259bd8a)
victorjulien added a commit to victorjulien/suricata that referenced this pull request Mar 21, 2022
Only accept netmask in dotted quad notation if they can be turned
into a CIDR.

According to rfc 4632, CIDR (compat) netmasks are all that should be
used.

Bug: OISF#5168.
(cherry picked from commit 79b7b7a)
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.

4 participants