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

Re: updated ipv6 patch for postfix



>>>>> On Thu, 20 Jan 2000 00:07:05 +0900, 
>>>>> Hideaki YOSHIFUJI <yoshfuji@ecei.tohoku.ac.jp> said:

>> > SIOCGIFCONF is no good for this on Linux.  The sockaddr_in6 structure is too 
>> > big to fit inside struct ifreq.

>> Sockaddr_in6 does not fit in ifreq{} in BSDs, either. But it doesn't
>> matter for us if we carefully parse the result of the ioctl.

> I remember that application increments its pointer manually by 
> sizeof(struct sockaddr_in6) - sizeof(struct sockaddr) bytes, 
> but it is not good for Linux because we don't know the actual size of 
> sockaddr_in6 structure returned from kernel

I don't get it. Why can't you just use sizeof(sockaddr_in6) for
AF_INET6? Are you concerned with padding issues?

> (and would vary if kernel supports sin6_scope_id)

Yes, but it matters during a transition period (from RFC2133 to
RFC2553) only.

					JINMEI, Tatuya
					Communication Platform Lab.
					Corporate R&D Center, Toshiba Corp.
					jinmei@isl.rdc.toshiba.co.jp


Reply to: