Skip to content

incorrect FirstUsable and LastUsable in nuget 2.6 version for /31 networks #369

@RudiSzalai

Description

@RudiSzalai

example.: 167.92.212.82/31

Current values:
First: 167.92.212.82
Last: 167.92.212.83
FirstUsable: 167.92.212.83
LastUsable: 167.92.212.82

The issues with this in version 2.6 is that LastUsable is less than the FirstUsable.

Expected values According to AI (which might be wrong):
A /31 network contains exactly two IP addresses, both usable, typically for point‑to‑point links (as defined in RFC 3021).
Network: 167.92.212.82
Broadcast: none (for /31 networks, both addresses are host addresses)

Usable Hosts for the example /31 network:
167.92.212.82 (so this supposed to be the FirsUsable)
167.92.212.83 (this supposed to be the LastUsable)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions