-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MRT message encoder for BGP updates #118
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # bgpkit-parser/src/parser/bgp/attributes/attr_07_18_aggregator.rs # bgpkit-parser/src/parser/bgp/attributes/mod.rs # bgpkit-parser/src/parser/filter.rs
# Conflicts: # bgpkit-parser/src/lib.rs # bgpkit-parser/src/parser/bgp/attributes/mod.rs # bgpkit-parser/src/parser/bgp/messages.rs # bgpkit-parser/src/parser/mod.rs
# Conflicts: # Cargo.toml # src/models/mrt/mod.rs # src/models/network/asn.rs # src/parser/bgp/attributes/attr_02_17_as_path.rs # src/parser/bgp/attributes/attr_09_originator.rs # src/parser/bgp/attributes/attr_16_25_extended_communities.rs # src/parser/bgp/attributes/mod.rs # src/parser/bgp/messages.rs # src/parser/mod.rs # src/parser/mrt/messages/bgp4mp.rs # src/parser/mrt/messages/table_dump_message.rs # src/parser/mrt/mrt_record.rs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This pull request adds MRT encoding for
TableDumpMessage
andBgp4Mp
types of messages.We test it by parsing messages from remote site, encode to MRT bytes, and then parse the encoded bytes again for comparison. See the following test snippet for details:
TableDumpMessage
Bgp4Mp
The implementation for
TableDumpMessageV2
will require more work and will be implemented in the near future.Example usages
MRT encoding can be very useful when users want to archive BGP messages into MRT instead of reading from MRT files. This enables applications to implement features like:
bgpkit-monocle
)