allow .igmpize() on IGMPv3 packet types #2537
Merged
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.
This is marked as a draft because I'm having trouble adding tests. When I run test/run_tests it doens't seem to run any of the contrib tests. Is that by design? Can I turn those on?
Also, the guidelines say no unnecessary lists. I think
value in [item1, item2, item3, item4]
is a whole lot more readable / maintainable / etc thanvalue == item1 or value == item2 or value == item3 or value == item4
but I can change it if that's really better.This PR allows you to run
.igmpize()
on IGMPv3 packets that are a type that didn't exist in IGMP. It shouldn't affect too much. I think there may still be some issues in IGMPv3 that I'll have to fix in a separate pull request.fixes #2536