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

From: YOSHIFUJI Hideaki / 吉藤英明
Date: Thu Nov 06 2003 - 21:32:06 EST


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/