Skip to content

Add sctp to ct#614

Open
vlrpl wants to merge 3 commits intoretis-org:mainfrom
vlrpl:ct-sctp
Open

Add sctp to ct#614
vlrpl wants to merge 3 commits intoretis-org:mainfrom
vlrpl:ct-sctp

Conversation

@vlrpl
Copy link
Contributor

@vlrpl vlrpl commented Mar 13, 2026

  • generalize proto_state (w/ compat)
  • add sctp
  • update doc

@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 0% with 36 lines in your changes missing coverage. Please review.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #614   +/-   ##
=======================================
  Coverage   37.09%   37.09%           
=======================================
  Files         111      111           
  Lines       13392    13402   +10     
  Branches    13392    13402   +10     
=======================================
+ Hits         4968     4972    +4     
- Misses       8041     8046    +5     
- Partials      383      384    +1     
Flag Coverage Δ
aarch64 37.09% <0.00%> (+<0.01%) ⬆️
x86_64 37.09% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vlrpl vlrpl added this to the v1.7 milestone Mar 13, 2026
.btf
.resolve_types_by_name("tcp_conntrack")
{
fn parse_proto_states(&mut self, flag: u32, btf_name: &str, prefix: &str) -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we could reuse parse_enum instead.

};
let proto_state = [RETIS_CT_PROTO_TCP, RETIS_CT_PROTO_SCTP]
.iter()
.find(|&&f| flags & f != 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think a single & is enough.

vlrpl added 3 commits March 20, 2026 15:37
Rename tcp_state to proto_state in the BPF event struct and Rust side to
make it protocol-agnostic.

Signed-off-by: Paolo Valerio <pvalerio@redhat.com>
Add SCTP to the list of protocols tracked by the conntrack collector.

Signed-off-by: Paolo Valerio <pvalerio@redhat.com>
Generalize tcp state and add SCTP.

Signed-off-by: Paolo Valerio <pvalerio@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants