-
Notifications
You must be signed in to change notification settings - Fork 2
Add ismulticast(::IPv4) function #8
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
Conversation
| @test length(ipp.payload) == 48 | ||
| end | ||
|
|
||
| @testset "ismulticast" begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we construct a whole packet to test a function that operators on IP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, this is wasteful of cognitive resources. I'll change this to a simpler test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with new tests now.
Co-authored-by: Christian Rorvik <christian.rorvik@gmail.com>
Co-authored-by: Christian Rorvik <christian.rorvik@gmail.com>
Co-authored-by: Christian Rorvik <christian.rorvik@gmail.com>
Co-authored-by: Sergey Fokin <green.nsk@gmail.com>
Add a function to check if an IPv4 address is within the IANA multicast address range.