[ntp:questions] Pool returns IPv6 address to IPv4 query

Greg Troxel 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
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.ntp.org/pipermail/questions/attachments/20131121/43c198ea/attachment.sig>

More information about the questions mailing list