From: Jim Rees <rees@umich.edu>
To: Neil Brown <neilb@suse.de>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 2/3] Give hostname.c more support for IPv6
Date: Wed, 4 Aug 2010 07:57:46 -0400 [thread overview]
Message-ID: <20100804115746.GA16993@merit.edu> (raw)
In-Reply-To: <20100804064945.16641.71097.stgit@localhost.localdomain>
Neil Brown wrote:
+ if (inet_pton(AF_INET, paddr, &sin.sin_addr) == 0 &&
+ inet_pton(AF_INET6, paddr, &sin.sin_addr) == 0)
return NULL;
Having converted a few apps myself, I wish there were an equivalent to
inet_pton that instead of taking an AF argument, would return the AF that it
found. Then you could do the above in a single call.
next prev parent reply other threads:[~2010-08-04 11:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 6:49 [PATCH 0/3] Some IPv6 enhancements for nfs-utils Neil Brown
2010-08-04 6:49 ` [PATCH 3/3] Allow check_fqdn to compare IPv6 addresses Neil Brown
2010-09-27 11:46 ` Steve Dickson
2010-08-04 6:49 ` [PATCH 1/3] Make buffers large enough for " Neil Brown
2010-09-27 11:33 ` Steve Dickson
2010-08-04 6:49 ` [PATCH 2/3] Give hostname.c more support for IPv6 Neil Brown
2010-08-04 11:57 ` Jim Rees [this message]
2010-09-27 11:44 ` Steve Dickson
2010-08-04 15:08 ` [PATCH 0/3] Some IPv6 enhancements for nfs-utils Chuck Lever
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=20100804115746.GA16993@merit.edu \
--to=rees@umich.edu \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
/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 NNTP newsgroup(s).