Skip to content

Comments

Add inet IP address parse and ntoa functions#2134

Open
bettio wants to merge 1 commit intoatomvm:mainfrom
bettio:inet-parse-ntoa
Open

Add inet IP address parse and ntoa functions#2134
bettio wants to merge 1 commit intoatomvm:mainfrom
bettio:inet-parse-ntoa

Conversation

@bettio
Copy link
Collaborator

@bettio bettio commented Feb 23, 2026

Add ntoa/1, parse_address/1, parse_ipv4_address/1, parse_ipv4strict_address/1 functions.

Note: our parse_(ipv4_)address/1 has an important limitation: exotic IPv4 forms, such as "127.1" and "0x7f000001", are not accepted in order to keep our code short.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Add `ntoa/1`, `parse_address/1`, `parse_ipv4_address/1`,
`parse_ipv4strict_address/1` functions.

Note: our parse_(ipv4_)address/1 has an important limitation: exotic
IPv4 forms, such as "127.1" and "0x7f000001", are not accepted in order
to keep our code short.
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.

1 participant