From: "Zheng, Jeff" <jeff.zheng@intel.com>
To: <linux-kernel@vger.kernel.org>
Subject: Why size of sockaddr smaller than size of sockaddr_in6?
Date: Fri, 7 Nov 2003 10:04:05 +0800 [thread overview]
Message-ID: <37FBBA5F3A361C41AB7CE44558C3448E07EC27@pdsmsx403.ccr.corp.intel.com> (raw)
I thought that sockaddr should hold sockaddr_in sockaddr_in6 and any other socket address (or at least sockaddr_in6).
Current definition:
struct sockaddr
{
__SOCKADDR_COMMON (sa_); /* Common data: address family and length. */
char sa_data[14]; /* Address data. */
};
Can be:
struct sockaddr
{
__SOCKADDR_COMMON (sa_); /* Common data: address family and length. */
char sa_data[28]; /* Address data. */
};
Is there any reason not to hold sockaddr_in6 in sockaddr?
Please CC the answers/comments posted to the list in response to my posting to me.
> Thanks
> Jeff Jeff.Zheng@intel.com
> BTW, I speak for myself, not for Intel Corp.
>
next reply other threads:[~2003-11-07 2:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 2:04 Zheng, Jeff [this message]
2003-11-07 2:23 ` YOSHIFUJI Hideaki / 吉藤英明
2003-11-07 3:00 Zheng, Jeff
2003-11-07 3:52 ` YOSHIFUJI Hideaki / 吉藤英明
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37FBBA5F3A361C41AB7CE44558C3448E07EC27@pdsmsx403.ccr.corp.intel.com \
--to=jeff.zheng@intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®