Skip to content

Conversation

@digizeph
Copy link
Member

@digizeph digizeph commented Aug 4, 2025

No description provided.

Add comprehensive BGP validation warning system that implements RFC 7606
revised error handling for BGP UPDATE messages. This ensures the parser
never breaks from reading incorrect BGP messages and follows the
treat-as-withdraw approach for mandatory attributes and attribute discard
approach for optional attributes.

Changes:
- Add BgpValidationWarning enum with 12 warning types covering RFC 4271/7606 scenarios
- Add validation_warnings field to Attributes struct with accessor methods
- Implement attribute validation during parsing (flags, length, duplicates, missing mandatory)
- Add RFC 7606 compliant error handling that continues parsing without session reset
- Add conditional compilation guards for parser-only features
- Add comprehensive tests for all RFC 7606 error handling scenarios
- Add RFC 7606 to supported RFCs list in documentation
- Use debug\! level logging for warnings to avoid output by default
@digizeph digizeph merged commit 8b7fc8a into main Aug 4, 2025
2 of 3 checks passed
@digizeph digizeph deleted the RFC7606 branch August 4, 2025 01:18
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