On Tue, 2013-10-22 at 21:50 -0500, David B Funk wrote: > Actually that %thingy is the IPv6 zone_id (which functionally maps to the > interface).
Good point, thanks. And appropriately named article link. > Given that the LLA is the same bit range regardless of interface, on a > multi-homed machine it is necessary to specify interface as well as address. > > See: > RFC-4007 section 11 > http://blogs.gentoo.org/eva/2010/12/17/things-you-didnt-known-about-ipv6-link-local-address/ -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}