[ntp:questions] Pool returns IPv6 address to IPv4 query
gdt at ir.bbn.com
Thu Nov 21 07:07:03 UTC 2013
Uwe Klein <uwe at klein-habertwedt.de> writes:
> struct sockaddr was a catch all and you had to also hand the size of the
> storage into the call.
It's a union. On BSD, struct sockaddr is not guaranteed to be big
eonugh. For space allocation, use struct sockaddr_storage, which is
guaranteed to be big enough.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 194 bytes
Desc: not available
More information about the questions