Add sa_len for sockaddr conversions
authorSubodh Iyengar <subodh@fb.com>
Tue, 5 Jul 2016 05:46:06 +0000 (22:46 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Tue, 5 Jul 2016 05:53:24 +0000 (22:53 -0700)
commitdc93938852aa64604563afbc8d185062f01153f2
tree456d441941c3f381139a46f2d17230958eb4ac21
parent9917731199d890499d7a732c1573281b4976bb16
Add sa_len for sockaddr conversions

Summary:
Some platforms like Apple add a additional
field to sockaddr called sa_len.

This is not normally required by POSIX, so
all posix methods work correctly when a sockaddr
is passed in without a sa_len set.

However other functions which are not defined
by posix such as connectx require this field to
operate correctly.

Reviewed By: yfeldblum

Differential Revision: D3514266

fbshipit-source-id: f8e2941f337222486c81c911dbd06a2ce35e4f00
folly/IPAddress.h