public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Ian Pilcher <arequipeno@gmail.com>
To: libc-help@sourceware.org
Subject: inet_net_pton() alternative for IPv6
Date: Mon, 4 Jul 2022 13:07:59 -0500	[thread overview]
Message-ID: <t9va9v$jo0$1@ciao.gmane.io> (raw)

I am searching for the best way to parse both IPv4 and IPv6 CIDR-
formatted addresses.  I have found inet_net_pton(), but it only supports
IPv4 (AF_INET) addresses.

Needless to say, this is pretty disappointing in 2022.  Is there an
alternative API that I should be using, or am I stuck writing my own?

Thanks!

-- 
========================================================================
Google                                      Where SkyNet meets Idiocracy
========================================================================


             reply	other threads:[~2022-07-04 18:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04 18:07 Ian Pilcher [this message]
2022-07-04 18:23 ` tomas
2022-07-05 23:58   ` Ian Pilcher
2022-07-06  5:04     ` tomas
2022-07-04 18:34 ` Florian Weimer
2022-07-04 19:34   ` Ian Pilcher
2022-07-04 19:57     ` Florian Weimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='t9va9v$jo0$1@ciao.gmane.io' \
    --to=arequipeno@gmail.com \
    --cc=libc-help@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).