From: Steve French <smfltc@us.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: xma@us.ibm.com
Subject: constructing IPv6 in6_addr structure from ipv6
Date: 06 Dec 2004 16:04:04 -0600 [thread overview]
Message-ID: <1102370644.1855.13.camel@stevef95.austin.ibm.com> (raw)
Is there a recommended way to construct a struct sockaddr_in6 in kernel
which is the format the connect function on a socket requires for ipv6
addresses?
Basically this boils down to how to best construct a struct in6_addr
starting with a IPv6 network address represented as a familiar dotted
address character string. I would prefer to convert this in kernel via
something like inet_pton(AF_INET6,original_address_string,
converted_to_in6_add_form) but I could convert in userspace and pass the
16 byte array down to the kernel mangled as a string, via a mount
option.
Is it better to mangle the address and pass it down, or do something
similar to inet_pton? This can't be the first time that someone has
wanted to deal with an ipv6 address coming from userspace ...
reply other threads:[~2004-12-06 22:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1102370644.1855.13.camel@stevef95.austin.ibm.com \
--to=smfltc@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xma@us.ibm.com \
/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
all inboxes | Powered by JetHome®