Project

General

Profile

Actions

Task #6355

closed

Task #6308: detect/analyzer: add more keyword details

detect/analyzer: add more details for the tcp.mss keyword

Added by Juliana Fajardini Reichow 8 months ago. Updated 23 days ago.

Status:
Closed
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:
Beginner, C, Outreachy

Description

Add more details to the tcp.mss keyword engine analysis output.

See what the tcp.mss keyword has on https://docs.suricata.io/en/latest/rules/header-keywords.html#tcp-mss

There are more general explanations in the parent task.


Related issues 2 (1 open1 closed)

Copied from Suricata - Task #6354: detect/analyzer: add more details for the tcp ack keywordClosedDaniel OlatunjiActions
Copied to Suricata - Task #6356: detect/analyzer: add more details for the tcp.hdr keywordNewCommunity TicketActions
Actions #1

Updated by Juliana Fajardini Reichow 8 months ago

  • Copied from Task #6354: detect/analyzer: add more details for the tcp ack keyword added
Actions #2

Updated by Juliana Fajardini Reichow 8 months ago

  • Copied to Task #6356: detect/analyzer: add more details for the tcp.hdr keyword added
Actions #3

Updated by Daniel Olatunji 7 months ago

Hello, I want to work on this.

But then, I'll be working on the same file (detect-engine-analyzer.c) I worked with on my last contribution, which has been approved but not merged yet. How do I handle it so there is no merge conflict when this is to be merged? Should I just add the previous edits I made before on this one too, by myself?

Actions #4

Updated by Juliana Fajardini Reichow 7 months ago

Daniel Olatunji wrote in #note-3:

Hello, I want to work on this.

Ok, please, assign it to yourself, and thanks!

But then, I'll be working on the same file (detect-engine-analyzer.c) I worked with on my last contribution, which has been approved but not merged yet. How do I handle it so there is no merge conflict when this is to be merged? Should I just add the previous edits I made before on this one too, by myself?

Imho, the correct procedure here would be to create your new branch from master, and if the other PR gets merged before this new contribution, you would rebase your new work, and fix any existing conflicts.

(But you could also create your branch on top of the changes you've done, and then once those got merged and you rebased, they'd be skipped.)

Does that answer your question?

Actions #5

Updated by Daniel Olatunji 7 months ago

Juliana Fajardini Reichow wrote in #note-4:

Daniel Olatunji wrote in #note-3:

Hello, I want to work on this.

Ok, please, assign it to yourself, and thanks!

But then, I'll be working on the same file (detect-engine-analyzer.c) I worked with on my last contribution, which has been approved but not merged yet. How do I handle it so there is no merge conflict when this is to be merged? Should I just add the previous edits I made before on this one too, by myself?

Imho, the correct procedure here would be to create your new branch from master, and if the other PR gets merged before this new contribution, you would rebase your new work, and fix any existing conflicts.

(But you could also create your branch on top of the changes you've done, and then once those got merged and you rebased, they'd be skipped.)

Does that answer your question?

What if I had already submitted a new PR before the previous one was merged?

Actions #6

Updated by Daniel Olatunji 7 months ago

  • Status changed from New to In Progress
  • Assignee changed from Community Ticket to Daniel Olatunji
Actions #7

Updated by Juliana Fajardini Reichow 7 months ago

Daniel Olatunji wrote in #note-5:

Juliana Fajardini Reichow wrote in #note-4:

Daniel Olatunji wrote in #note-3:

Hello, I want to work on this.

Ok, please, assign it to yourself, and thanks!

But then, I'll be working on the same file (detect-engine-analyzer.c) I worked with on my last contribution, which has been approved but not merged yet. How do I handle it so there is no merge conflict when this is to be merged? Should I just add the previous edits I made before on this one too, by myself?

Imho, the correct procedure here would be to create your new branch from master, and if the other PR gets merged before this new contribution, you would rebase your new work, and fix any existing conflicts.

(But you could also create your branch on top of the changes you've done, and then once those got merged and you rebased, they'd be skipped.)

Does that answer your question?

What if I had already submitted a new PR before the previous one was merged?

If you follow the first approach, there's nothing to be done, as this is a different keyword.

If you follow the second approach, you could mention on the new PR that you have built your work on top of previous work done on PR #6415
But considering this, I would say that it is indeed preferable that you take the first approach, therefore you don't have to link unrelated work in your new PR. It is not uncommon to have situations like this, and in such cases we will rebase and handle any possible merge conflicts that may occur - but I would expect this work not to lead to complex merge conflicts, as although it is the same file, you'll be adding a different keyword case.

Actions #8

Updated by Daniel Olatunji 7 months ago

Juliana Fajardini Reichow wrote in #note-7:

Daniel Olatunji wrote in #note-5:

Juliana Fajardini Reichow wrote in #note-4:

Daniel Olatunji wrote in #note-3:

Hello, I want to work on this.

Ok, please, assign it to yourself, and thanks!

But then, I'll be working on the same file (detect-engine-analyzer.c) I worked with on my last contribution, which has been approved but not merged yet. How do I handle it so there is no merge conflict when this is to be merged? Should I just add the previous edits I made before on this one too, by myself?

Imho, the correct procedure here would be to create your new branch from master, and if the other PR gets merged before this new contribution, you would rebase your new work, and fix any existing conflicts.

(But you could also create your branch on top of the changes you've done, and then once those got merged and you rebased, they'd be skipped.)

Does that answer your question?

What if I had already submitted a new PR before the previous one was merged?

If you follow the first approach, there's nothing to be done, as this is a different keyword.

If you follow the second approach, you could mention on the new PR that you have built your work on top of previous work done on PR #6415
But considering this, I would say that it is indeed preferable that you take the first approach, therefore you don't have to link unrelated work in your new PR. It is not uncommon to have situations like this, and in such cases we will rebase and handle any possible merge conflicts that may occur - but I would expect this work not to lead to complex merge conflicts, as although it is the same file, you'll be adding a different keyword case.

OK then.

I understand now.
Thank you for your constant assistance :).

Actions #9

Updated by Daniel Olatunji 7 months ago

I had been going down a never ending rabbit hole on this one, and it gets more confusing for me, since I am not very proficient in C.
I have been on it for a couple of days now, and cannot seem to figure out how to work with the "DetectU16Data".

I have looked through the file "detect-engine-uint.c" and it's corresponding header file.

Actions #10

Updated by Daniel Olatunji 7 months ago

  • Status changed from In Progress to In Review
Actions #11

Updated by Philippe Antoine 23 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF