Re: the use sin_zero in sockaddr_in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux