Repository navigation
Conversation
Only the first digit of each port is read and whatever follows it is ignored, so "mirror 12" sets port 1 as the mirroring port and "mirror 3 45" mirrors port 4.
Collaborator
|
Don't know if all these cmd_parser fixes are needed, @mintsoft refactors this anyway? |
This file contains hidden or 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
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.
mirror 12makes port 1 the mirroring port andmirror 3 45mirrors port 4. Only the first digit of a port is read; what follows a source port is taken as "both directions" unless it istorr.The mirroring port now has to end at a space or the end of the line, and a source port may only be followed by
torr.In rtlsim on an RTL8373 board
mirror 12,mirror 3 45,mirror 3 4xandmirror 3 4rtget 200 on main and switch mirroring on; with this change they get 400 and/mirror.jsonstays as it was.mirror 3 4andmirror 3 4r 5t 6give the same result as before.