Skip to content

support unusual IPv4 and IPv6 notations #16

@Abdull

Description

@Abdull

IPv4 and IPv6 addresses can be expressed in different notations. I noticed that ipcalc in version 0.51 does not support many of them.

Example addresses that fail with ipcalc 0.51 ("INVALID ADDRESS: ..."), but work with ping (from iputils 20210202 on Debian 11 bullseye 5.10.0-25-amd64):

127.1            # skipping zeros
0177.0x1    # using octal (0<number>) and hexadecimal (0x<number>)
127.999          # overflow into next octet
2130706433       # not using octet grouping

See:

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