Re: How to get IPv6 address using getifaddrs and which version of glibc supports
Re: How to get IPv6 address using getifaddrs and which version of glibc supports
- Subject: Re: How to get IPv6 address using getifaddrs and which version of glibc supports
- From: almisr <email@hidden>
- Date: Mon, 7 Aug 2006 12:30:22 +0200
Linux Dump ( current dump fc5 , tested on Deb 3 too)
[mmm@zara tmp]$ ./prog
lo: 127.0.0.1
eth0: 192.168.0.2
lo: ::1
eth0: fe80::203:93ff:fe7c:3764
[mmm@zara tmp]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:93:7C:37:64
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:
255.255.255.0
inet6 addr: fe80::203:93ff:fe7c:3764/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:309 errors:0 dropped:0 overruns:0 frame:0
TX packets:330 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:162091 (158.2 KiB) TX bytes:46960 (45.8 KiB)
Interrupt:41 Base address:0x1400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1447 errors:0 dropped:0 overruns:0 frame:0
TX packets:1447 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3302852 (3.1 MiB) TX bytes:3302852 (3.1 MiB)
[mmm@zara tmp]$ getconf GNU_LIBC_VERSION
glibc 2.4
[mmm@zara tmp]$ getconf POSIX2_VERSION
200112
it seems that you have to sort the result before printing
but it's work
| and |
Best Regards
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden