• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get IPv6 address using getifaddrs and which version of glibc supports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to get IPv6 address using getifaddrs and which version of glibc supports (From: Srinivasa Srini <email@hidden>)
 >Re: How to get IPv6 address using getifaddrs and which version of glibc supports (From: almisr <email@hidden>)

  • Prev by Date: Re: How to get IPv6 address using getifaddrs and which version of glibc supports
  • Next by Date: Re: Problems with open() and close()
  • Previous by thread: Re: How to get IPv6 address using getifaddrs and which version of glibc supports
  • Next by thread: Apple Opens Up: Kernel, Mac OS Forge, iCal Server, Bonjour, Launchd
  • Index(es):
    • Date
    • Thread