On Tue, Oct 8, 2024 at 2:44 AM Alessandro Vesely <[email protected]> wrote:

> Let me repeat the point.  Currently there is a dozen alternative regular
> expressions (that is, OR joined) which allow various styles of IP
> addresses,
> and we've been wondering whether 01.02.03.04 is valid (rather than
> 1.2.3.4) and
> similar trivialities.


The original UNIX libc functions that parse IP addresses would accept
that.  For that matter, so too would "127.1" and "16777343" be accepted
without error.  But I wouldn't expect any modern standard to be required to
accept those.

I looked into this and it doesn't appear that a standard was ever
published, at least for IPv4.  Wikipedia says a document that sought to do
that was abandoned long ago (draft-main-ipaddr-text-rep, 2005).  RFC 790
had some examples that zero-padded all octets to three digits.

It would seem we have some latitude here.

-MSK
_______________________________________________
dmarc mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to