From mboxrd@z Thu Jan 1 00:00:00 1970 From: prabhum@msys-tech.com (prabhu) Date: Mon, 21 Feb 2011 22:04:23 +0530 Subject: the use sin_zero in sockaddr_in In-Reply-To: <1298305072.24030.19.camel@morgoth> References: <4D628EBF.3020707@msys-tech.com> <1298305072.24030.19.camel@morgoth> Message-ID: <4D62940F.4000909@msys-tech.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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