-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add IPv6 support. Add parsing of VLAN and QinQ tagged ethernet packets #42
Open
cmoeller-dx
wants to merge
17
commits into
DE-CIX:master
Choose a base branch
from
cmoeller-dx:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
Ipv6 (multiprotocol support)
Vlan support merge with master. Changes were mostly unrelated to previous merge (ipv6 support).
This was referenced Aug 12, 2020
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.
IPv6:
This commit adds the ability to parse packets, captured by ipv6 speakers.
It is also possible to parse multiprotocol BGP-messages. IPv4 (testing required) and IPv6 are understood protocols.
Filtering source and destination ipv6 addresses is also possible. Filtering REACH_NLRI and UNREACH_NLRI fields are currently not implemented.
Output could look like this:
Because of the differnces between ipv4 and ipv6 i changed the signature of the following classmethod
This allows us to interpret ipv6 prefixes. The only thing which is not implemented is the ability to represent the ipv6 address as a number (16byte int). For consistency reason, i understand why one would implement a BGPRoute.decimal_ip_to_string() function for ipv6, but its not necessary at this point since its not used.
Feel free to contribute if you want to :)
VLAN/QinQ:
Ethernet frames containing a VLAN or QinQ tag are now able to be processed.
Filtering is also possible: --filter-service-vlan --filter-customer-vlan
If theres a VLAN tag only, use --filter-customer-vlan
With this commit no options or filter syntax changed, so you can use the parser just like before that commit.