HomeClusterLabs Projects

send 'correct' sockaddr lengths to socket calls

Description

send 'correct' sockaddr lengths to socket calls

FreeBSD-devel insists that the length passed into socket calls
matches the expected length of the sockaddr it describes.
So, eg, when passing a sockaddr_in, the length must be sizeof(sockaddr_in)
rather than sizeof(sockaddr_storage) which we were using

Signed-Off-By: Chrissie Caulfield <ccaulfie@redhat.com>

Details

Provenance
chrissie-cAuthored on Jun 10 2021, 5:32 AM
fabbioneCommitted on Jun 11 2021, 2:39 AM
Parents
rKa45ac355d3d8: [docs] IRC channel is now on Libera Chat
Branches
Unknown
Tags
Unknown

Event Timeline