* How to get IPv6 interface?
@ 2002-11-26 8:28 Zheng Jianping
2002-11-26 19:08 ` Peter Bieringer
0 siblings, 1 reply; 6+ messages in thread
From: Zheng Jianping @ 2002-11-26 8:28 UTC (permalink / raw)
To: netdev
Hi,
My linux kernel is 2.4.7.10, how to get the information of all IPv6 interfaces, including the interfaces index, flags,name and address,etc ?
Thanks,
Zheng
[[HTML alternate version deleted]]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to get IPv6 interface?
2002-11-26 8:28 How to get IPv6 interface? Zheng Jianping
@ 2002-11-26 19:08 ` Peter Bieringer
2002-11-28 0:58 ` Zheng Jianping
0 siblings, 1 reply; 6+ messages in thread
From: Peter Bieringer @ 2002-11-26 19:08 UTC (permalink / raw)
To: netdev; +Cc: Zheng Jianping
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
--On Tuesday, November 26, 2002 04:28:31 PM +0800 Zheng Jianping
<zjp@iscas.ac.cn> wrote:
> My linux kernel is 2.4.7.10, how to get the information of all IPv6
> interfaces, including the interfaces index, flags,name and
> address,etc ?
Userspace: ip -6 addr
Peter
---
Dr. Peter Bieringer
mailto: pb at bieringer dot de
http://www.bieringer.de/pb/
Key 0x958F422D : B501 24F4 9418 23E2 C0F3 F833 7B57 AA7B 958F 422D
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to get IPv6 interface?
2002-11-26 19:08 ` Peter Bieringer
@ 2002-11-28 0:58 ` Zheng Jianping
2002-11-28 8:20 ` Peter Bieringer
0 siblings, 1 reply; 6+ messages in thread
From: Zheng Jianping @ 2002-11-28 0:58 UTC (permalink / raw)
To: Peter Bieringer; +Cc: netdev
----- Original Message -----
From: "Peter Bieringer" <pb@bieringer.de>
To: <netdev@oss.sgi.com>
Cc: "Zheng Jianping" <zjp@iscas.ac.cn>
Sent: Wednesday, November 27, 2002 3:08 AM
Subject: Re: How to get IPv6 interface?
--On Tuesday, November 26, 2002 04:28:31 PM +0800 Zheng Jianping
<zjp@iscas.ac.cn> wrote:
>> My linux kernel is 2.4.7.10, how to get the information of all IPv6
>> interfaces, including the interfaces index, flags,name and
>> address,etc ?
>Userspace: ip -6 addr
Peter,
I'm writing an IPv6 application, so which function can get the IPv6 inteface
information? And how to call it?
Thanks,
Zheng
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to get IPv6 interface?
2002-11-28 0:58 ` Zheng Jianping
@ 2002-11-28 8:20 ` Peter Bieringer
2002-11-28 11:16 ` bert hubert
0 siblings, 1 reply; 6+ messages in thread
From: Peter Bieringer @ 2002-11-28 8:20 UTC (permalink / raw)
To: netdev
[-- Attachment #1: Type: text/plain, Size: 574 bytes --]
--On Thursday, November 28, 2002 08:58:53 AM +0800 Zheng Jianping
<zjp@iscas.ac.cn> wrote:
> I'm writing an IPv6 application, so which function can get the IPv6
> inteface information? And how to call it?
Sorry, I'm not really an IPv6 programmer, hopefully others can help
you.
BTW: if someone has some written information about using the APIs,
would be nice if can be contributed to the HowTo.
Thanks,
Peter
---
Dr. Peter Bieringer
mailto: pb at bieringer dot de
http://www.bieringer.de/pb/
Key 0x958F422D : B501 24F4 9418 23E2 C0F3 F833 7B57 AA7B 958F 422D
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to get IPv6 interface?
2002-11-28 8:20 ` Peter Bieringer
@ 2002-11-28 11:16 ` bert hubert
2002-11-28 12:13 ` YOSHIFUJI Hideaki / 吉藤英明
0 siblings, 1 reply; 6+ messages in thread
From: bert hubert @ 2002-11-28 11:16 UTC (permalink / raw)
To: netdev
On Thu, Nov 28, 2002 at 09:20:04AM +0100, Peter Bieringer wrote:
>
>
> --On Thursday, November 28, 2002 08:58:53 AM +0800 Zheng Jianping
> <zjp@iscas.ac.cn> wrote:
>
> > I'm writing an IPv6 application, so which function can get the IPv6
> > inteface information? And how to call it?
>
> Sorry, I'm not really an IPv6 programmer, hopefully others can help
> you.
The best way is probably to look at the 'ip' sources which use netlink to
query the kernel.
> BTW: if someone has some written information about using the APIs,
> would be nice if can be contributed to the HowTo.
indeed.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to get IPv6 interface?
2002-11-28 11:16 ` bert hubert
@ 2002-11-28 12:13 ` YOSHIFUJI Hideaki / 吉藤英明
0 siblings, 0 replies; 6+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2002-11-28 12:13 UTC (permalink / raw)
To: ahu; +Cc: netdev
In article <20021128111600.GA30967@outpost.ds9a.nl> (at Thu, 28 Nov 2002 12:16:00 +0100), bert hubert <ahu@ds9a.nl> says:
> > > I'm writing an IPv6 application, so which function can get the IPv6
> > > inteface information? And how to call it?
> >
> > Sorry, I'm not really an IPv6 programmer, hopefully others can help
> > you.
>
> The best way is probably to look at the 'ip' sources which use netlink to
> query the kernel.
You may want to use getifaddrs() in USAGI libinet6.
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-11-28 12:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 8:28 How to get IPv6 interface? Zheng Jianping
2002-11-26 19:08 ` Peter Bieringer
2002-11-28 0:58 ` Zheng Jianping
2002-11-28 8:20 ` Peter Bieringer
2002-11-28 11:16 ` bert hubert
2002-11-28 12:13 ` YOSHIFUJI Hideaki / 吉藤英明
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).