[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 02869) getifaddrs();



While running the getifaddrs-test.c program from USAGI, I see that the link local address has a "%253" at the end of the address while the site local address does not have that, can some one tell me what does it mean. The output looks as follows:

Interface: lo
       Address: [127.0.0.1]
       Netmask: [255.0.0.0]
       Bcast: [127.0.0.1]


Interface: lo Address: [::1] Netmask: [ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff] Bcast: ------ Interface: eth0 Address: [fec0::1:204:76ff:fe39:6388] Netmask: [ffff:ffff:ffff:ffff::] Bcast: ------ Interface: eth0 Address: [fe80::204:76ff:fe39:6388%253] Netmask: [ffff:ffff:ffff:ffff::] Bcast: ------ Runing ifconfig I have the following.

eth0      Link encap:Ethernet  HWaddr 00:04:76:39:63:88
         inet6 addr: fec0::1:204:76ff:fe39:6388/64 Scope:Site
         inet6 addr: fe80::204:76ff:fe39:6388/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:432874 errors:0 dropped:0 overruns:39 frame:0
         TX packets:223124 errors:0 dropped:0 overruns:0 carrier:0
         collisions:264 txqueuelen:1000
         RX bytes:80487082 (76.7 MiB)  TX bytes:33742028 (32.1 MiB)
         Interrupt:3 Base address:0xdc00

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:169 errors:0 dropped:0 overruns:0 frame:0
         TX packets:169 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:13145 (12.8 KiB)  TX bytes:13145 (12.8 KiB)