netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Francois-Xavier Kowalski <francois-xavier_kowalski@hp.com>
To: Linux Networking Development ML <linux-net@vger.kernel.org>
Cc: "Francois-Xavier 'FiX' KOWALSKI" <francois-xavier_kowalski@hp.com>
Subject: feature request: get ipv6 address from interface name (SIOCGIFNAME)
Date: Mon, 29 Apr 2002 11:48:39 +0200	[thread overview]
Message-ID: <3CCD16F7.1070303@hp.com> (raw)

Hello,

I am currently writing some user-space stuff that require to get the
IP address from the Eternet interface name (because the interface name
is the one linked to the physical device).

ipv4 let the a the ability to retrieve a single address using the
itocl(SIOCGIFNAME) command.

So I am wondering if the fact that this feature is left un-implemented
in ipv6 is intentionnal or not.  The currently implemented ipv6 ioctl
commands only allow to set values, but not to retrieve them.

BTW, I have also noted that a single IPv4 address can be retrieved
using the ioctl(SIOCGIFNAME), whereas the ip(7) command gives the
ability to add several IP addresses per interface (not speaking of the
old "eth0:1" notiation, which is said to be deprecated).

Thanks in advance for any help / explanation or pointer.

Regards

FiX
-- 
François-Xavier 'FiX' KOWALSKI



                 reply	other threads:[~2002-04-29  9:48 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=3CCD16F7.1070303@hp.com \
    --to=francois-xavier_kowalski@hp.com \
    --cc=linux-net@vger.kernel.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 NNTP newsgroup(s).