On quarta-feira, 27 de julho de 2016 02:00:35 PDT Dave Thaler wrote: > BTW, the ZoneID is *not* an ifindex, it is a zone id. (See RFC 4007.) > On some platforms, the zone id of a link local address might happen to be an > ifindex, but any code that blindly assumes for all OS's is inherently > broken.
True, but that can mean one of two things, mutually exclusive: a) an ifindex suffices to uniquely identify the interface/link that the packet should be sent on and replies are expected to come in from, in which case all we need is a way to convert any extra information that may appear on the ZoneID to that ifindex. It may be an interface name (if_nametoindex) or the interface's link-local address, its UUID, whatever. or b) an ifindex does not suffice, in which case we need to review our API and internals, which relies extensively on ifindex. The front-end API should accept something that is larger than a simple 32-bit integer. Either way, it seems to me that ZoneIDs are superior than interface indexes. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
