On Thursday 27 August 2015 07:53:29 ?? wrote: > In my opinion, If CA(Connectivity Abstraction) add square bracket as > "[fe80::52b7:c3ff:fea1:9e6a]" when it generate a OCClientResponse for > response handler. It will make easier for all developers who use OCStack.
Why do the square brackets help here? They are required in a URL, but if you're talking about a plain IP address, they are not used. Example: $ ping6 '[fe80::5e51:4fff:fe7c:49f8%wlp2s0]' unknown host $ ping6 fe80::5e51:4fff:fe7c:49f8%wlp2s0 -c1 PING fe80::5e51:4fff:fe7c:49f8%wlp2s0(fe80::5e51:4fff:fe7c:49f8) 56 data bytes 64 bytes from fe80::5e51:4fff:fe7c:49f8: icmp_seq=1 ttl=64 time=0.025 ms --- fe80::5e51:4fff:fe7c:49f8%wlp2s0 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.025/0.025/0.025/0.000 ms $ getent ahosts fe80::5e51:4fff:fe7c:49f8%wlp2s0 fe80::5e51:4fff:fe7c:49f8 STREAM fe80::5e51:4fff:fe7c:49f8%wlp2s0 fe80::5e51:4fff:fe7c:49f8 DGRAM fe80::5e51:4fff:fe7c:49f8 RAW $ getent ahosts [fe80::5e51:4fff:fe7c:49f8%wlp2s0] $ echo $? 2 -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
