>>>>> On Fri, 11 Oct 2002 16:15:29 +0100, >>>>> Arun Prasad <[EMAIL PROTECTED]> said:
> Some doubts on the socket api for Ipv6. > * When a IPV6 packet is received throught the interface "recvmsg", how to get the > "zone_id" or "scope_id" for the received Ipv6 Addr. When the "recvmsg" > interface is called we get a structure in6_pktinfo, which has the ipv6 address >and > "ipi6_ifindex".... Does this "ipi6_ifindex" serve as "zone_id". Not really (at least technically). ipi6_ifindex specifies the "interface ID" of the receiving interface. The "zone ID" depends on the address type (i.e. link-local, site-local, global, etc), and, in general, interface IDs are different from zone IDs for wider scope types. However, interface scope is the narrowest one, so you can get the zone ID for any type of scope from the interface ID. For further information, see draft-ietf-ipngwg-scoping-arch-04.txt. Section 1.3 of the KAME IMPLEMENTATION notes may also give you hints. The latest one is available at: http://orange.kame.net/dev/cvsweb.cgi/kame/IMPLEMENTATION?rev=1.315 JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. [EMAIL PROTECTED] -------------------------------------------------------------------- IETF IPng Working Group Mailing List IPng Home Page: http://playground.sun.com/ipng FTP archive: ftp://playground.sun.com/pub/ipng Direct all administrative requests to [EMAIL PROTECTED] --------------------------------------------------------------------
