forked from the-tcpdump-group/tcpdump
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor out afi/safi processing and the "is this supported" check
It turns out the reason that the default: case was confusing between MP_REACH and MP_UNREACH was because the unsupported case for MP_REACH was handled already, so it didn't matter that the code was wrong, it was never executed. Instead, factor the afi/safi display and supported check into its own function, and delete the wrong code. Leave it to print an "ERROR:" message if the case statements do get out of sync, but don't try to print out the attribute in this case, since we don't have the right length.
- Loading branch information
Showing
1 changed file
with
81 additions
and
69 deletions.
There are no files selected for viewing
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