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/20200606/v7 #5046

Closed
wants to merge 16 commits into from
Closed

Conversation

victorjulien
Copy link
Member

#4992
#5013
#4978
#4914
#4919

PRScript output (if applicable):
Passed

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

victorjulien and others added 16 commits June 6, 2020 13:51
If there is a '/' in the redis server string then we consider that
the connection should be done other a unix socket.
In case of redis outage, the redis session was reset but the replies
were still fetch even if there is none replies in the new session.
In sync mode, Suricata was waiting to have batch size alerts before
logging them. This was introducing delay in some configuration with
low traffic.
- Fix relative_offset keyword option to be relative in regards to the
last content match
- Change relative_offset to int32_t with bounds check to allow the full
range of the packet buffer size (uint16_t)
- Added checks for over/underflows
- Changed the offset type to uint16_t because the offset is applied to
the payload length, which is a uint16_t
- Adjusted test cases to work relative to the content match
- Added test case to verify bounds
This commit adds support for transform-specific options. During Setup,
transforms have the signature string available for options detection.
When a transform detects an option, it should convert the option into an
internal format and supply a pointer to this format as the last argument
to DetectSignatureAddTransform.

Transforms that support options must provide a function in their
Sigmatch table entry. When the transform is freed, a pointer to the
internal format of the option is passed to this function.
This commit adds the definition of the new `pcrexform` transform.
This commit adds a new transform -- pcrexform -- that applies a regular
expression to the transformation buffer. If an expression was captured,
that is output to the transformation buffer. Otherwise, the
transformation buffer is unchanged.
This commit registers the `pcrexform` transform.
This commit improves the description of the `tos` keyword by emphasizing
that the value used should adhere to the guidelines in RFC2474. Instead
of specifying the DSCP value directly, right shift the DSCP value and
use that.
@victorjulien victorjulien requested review from jasonish, norg and a team as code owners June 9, 2020 07:24
@victorjulien victorjulien mentioned this pull request Jun 9, 2020
@victorjulien
Copy link
Member Author

Merged #5047 which contains all the same patches except the widestring fix that is no longer needed.

@victorjulien victorjulien deleted the next/20200606/v7 branch June 30, 2020 08:06
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.

5 participants