From: prabhum@msys-tech.com (prabhu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: the use sin_zero in sockaddr_in
Date: Mon, 21 Feb 2011 22:04:23 +0530 [thread overview]
Message-ID: <4D62940F.4000909@msys-tech.com> (raw)
In-Reply-To: <1298305072.24030.19.camel@morgoth>
Jose Celestino wrote:
> On Seg, 2011-02-21 at 21:41 +0530, prabhu wrote:
>
>> Hi all,
>>
>> Could anyone please explain the use sin_zero in sockaddr_in?
>>
>>
>
> Padding to allow for casting.
>
>
Hi Jose,
Could u please elaborate little more... why we need this 8 byte padding.
My complete Question:
1. Actually total size of sockaddr_in is 16 byte and out of 16 byte why
we have to use 8 byte for padding.?
2. Do we use these 8 byte for any other usage for real time?
Thanks,
Prabhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110221/9903a74b/attachment.html
next prev parent reply other threads:[~2011-02-21 16:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-21 16:11 the use sin_zero in sockaddr_in prabhu
2011-02-21 16:17 ` Jose Celestino
2011-02-21 16:34 ` prabhu [this message]
2011-02-21 16:41 ` Wick
2011-02-21 16:55 ` Wick
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=4D62940F.4000909@msys-tech.com \
--to=prabhum@msys-tech.com \
--cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.