Skip to content

Comments

rust/sip: register parser for tcp v15#10513

Closed
glongo wants to merge 8 commits intoOISF:masterfrom
glongo:dev-sip-tcp-v15
Closed

rust/sip: register parser for tcp v15#10513
glongo wants to merge 8 commits intoOISF:masterfrom
glongo:dev-sip-tcp-v15

Conversation

@glongo
Copy link
Contributor

@glongo glongo commented Feb 27, 2024

Make sure these boxes are signed before submitting your Pull Request -- thank you.

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/3351

Describe changes:

  • Rebase

SV_BRANCH=OISF/suricata-verify#1538

Accepts valid characters as defined in RFC3261.
The `is_version_char` function incorrectly allowed characters that are not
part of the valid SIP version "SIP/2.0".

For instance, 'HTTP/1.1' was mistakenly accepted as a valid SIP version,
although it's not.

This commit fixes the issue by updating the condition to strictly
check for the correct version string.
This patch lets the parser to work over tcp protocol, taking care of handling
data before calling the request/response parsers.

Ticket OISF#3351.
This patch permits to set a direction when a new transaction is created in order
to avoid 'signature shadowing' as reported by Eric Leblond in commit
5aaf507
This permits to detect the SIP protocol using pattern matching instead of
probing parser.

Since it is no longer used, the respective probing functions have been removed.
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 18776

@victorjulien victorjulien added this to the 8.0 milestone Feb 28, 2024
@victorjulien
Copy link
Member

Merged in #10522, thanks!

@glongo glongo mentioned this pull request Feb 9, 2025
5 tasks
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.

3 participants