RE: Why size of sockaddr smaller than size of sockaddr_in6?

From: Zheng, Jeff
Date: Thu Nov 06 2003 - 22:02:42 EST


Hello Hideaki YOSHIFUJI,

Thanks for your reply.

Is sockaddr_storage part of IPv6? I mean, does sockaddr_storage exist in a system that does not have IPv6? In such system if I use sockaddr_in6, the compile will be failed because there is no sockaddr_in6 structure.

> Thanks
> Jeff Jeff.Zheng@xxxxxxxxx
> BTW, I speak for myself, not for Intel Corp.


-----Original Message-----
From: Hideaki YOSHIFUJI [mailto:yoshfuji@xxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of yoshfuji@xxxxxxxxxxxxxx
Sent: Friday, November 07, 2003 10:24 AM
To: Zheng, Jeff
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: Why size of sockaddr smaller than size of sockaddr_in6?


Hello.

In article <37FBBA5F3A361C41AB7CE44558C3448E07EC27@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> (at Fri, 7 Nov 2003 10:04:05 +0800), "Zheng, Jeff" <jeff.zheng@xxxxxxxxx> says:

> I thought that sockaddr should hold sockaddr_in sockaddr_in6 and any other socket address (or at least sockaddr_in6).

No, we do not change sockaddr{}.
use sockaddr_storage{} for that purpose.
Please read RFC 3493.

--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/