Skip to content

Conversation

@philipch07
Copy link
Contributor

Description

  • Updates param_outgoing_reset_request to conform to RFC 6525 by adding a couple more checks in unmarshal
  • Improves the docs to refer to RFC 6525
  • Adds tests to ensure that it's correct

Reference issue

Resolves #420.

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.87%. Comparing base (a69c6a2) to head (8420cbd).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #421      +/-   ##
==========================================
+ Coverage   83.84%   83.87%   +0.03%     
==========================================
  Files          51       51              
  Lines        3448     3455       +7     
==========================================
+ Hits         2891     2898       +7     
  Misses        417      417              
  Partials      140      140              
Flag Coverage Δ
go 83.87% <100.00%> (+0.03%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@JoeTurki JoeTurki requested a review from Copilot November 2, 2025 05:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances validation and testing for SCTP Outgoing SSN Reset Request parameters by adding length validation for malformed stream identifier lists and verifying the marshal/unmarshal length formula according to RFC 6525.

  • Added validation to reject parameters with odd-length stream identifier lists (which would violate the 2-byte-per-stream-ID requirement)
  • Improved documentation with RFC references and clearer comments
  • Added comprehensive test coverage for edge cases and length validation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
param_outgoing_reset_request.go Added validation check for odd-length stream lists, improved comments with RFC references, and refactored unmarshal logic for clarity
param_outgoing_reset_request_test.go Added test cases for invalid odd-length stream lists and marshal/unmarshal length formula verification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Update param_outgoing_reset_request to RFC 6525

2 participants