Changes

359 bytes added ,  04:05, 15 July 2013
no edit summary
Line 45: Line 45:  
| [[SOCU:ShutdownSockets|ShutdownSockets]]
 
| [[SOCU:ShutdownSockets|ShutdownSockets]]
 
|}
 
|}
 +
 +
= struct sockaddr =
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x1
 +
| Total size of the entire sockaddr buffer.
 +
|-
 +
| 0x1
 +
| 0x1
 +
| u8 sa_family
 +
|-
 +
| 0x2
 +
| sockaddr_totalsize-0x2
 +
| sa_data[]
 +
|}
 +
 +
The total buffer size is 0x8, for family AF_INET value 2. AF_INET6 seems to be value 23, the total sockaddr size for this is 0x1C.