Skip to content

Add ability to validate if a CIDR notation represents a valid range #21

@dadepo

Description

@dadepo

The IP number portion of a cidr notation should signify the start of the range (or the network identifier)

Add a validation method that returns true or false depending on if the given ip number represents the start of the range.

validate 10.0.0.0/8 -> should return true, since 10.0.0.0 is the start of the range depicted
validate 10.0.4.23/8 -> should return false, since 10.0.4.23/8 is not the start of the range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions