Skip to content

Fix BGP open encoder and remove redundant param_length - #312

Merged
digizeph merged 3 commits into
bgpkit:mainfrom
ties:fix/encode-open-messages
Jul 29, 2026
Merged

Fix BGP open encoder and remove redundant param_length#312
digizeph merged 3 commits into
bgpkit:mainfrom
ties:fix/encode-open-messages

Conversation

@ties

@ties ties commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@ties ties changed the title remove redundant param_length from BGP open encoder Fix BGP open encoder and remove redundant param_length from BGP open encoder Jul 29, 2026
@ties ties changed the title Fix BGP open encoder and remove redundant param_length from BGP open encoder Fix BGP open encoder and remove redundant param_length Jul 29, 2026
Comment thread src/parser/bgp/messages.rs
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.90710% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.31%. Comparing base (b48c33d) to head (33329b6).

Files with missing lines Patch % Lines
src/parser/bgp/messages.rs 98.90% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
+ Coverage   90.15%   90.31%   +0.16%     
==========================================
  Files          91       91              
  Lines       19159    19306     +147     
==========================================
+ Hits        17272    17436     +164     
+ Misses       1887     1870      -17     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

RFC 5492 (https://www.rfc-editor.org/rfc/rfc5492.html#section-4) defines
capability length at one octet. This did not change with RFC 9072 extended OPEN.

Each Add-Path entry is four octets and all Add-Path entries need to be
in one capability, adding an effective upper limit of 63.
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