Skip to content

Conversation

@klf-gs
Copy link
Contributor

@klf-gs klf-gs commented Jul 29, 2024

Add a function to check if an IPv4 address is within the IANA multicast address range.

@test length(ipp.payload) == 48
end

@testset "ismulticast" begin
Copy link
Owner

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

klf-gs and others added 4 commits July 29, 2024 14:07
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>
@klf-gs klf-gs changed the title Add ismulticast(::IPAddr) function Add ismulticast(::IPv4) function Jul 29, 2024
@ancapdev ancapdev merged commit f68899b into ancapdev:master Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants