Page MenuHomeFreeBSD

Change char in struct sockaddr_storage to unsigned
Needs ReviewPublic

Authored by code.jpe_gmail.com on Sep 23 2017, 1:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 11:35 PM
Unknown Object (File)
Dec 13 2023, 2:46 AM
Unknown Object (File)
Nov 30 2023, 11:57 AM
Unknown Object (File)
Nov 23 2023, 2:07 PM
Unknown Object (File)
Aug 16 2023, 9:45 PM
Unknown Object (File)
Aug 15 2023, 12:33 AM
Unknown Object (File)
Aug 15 2023, 12:02 AM
Unknown Object (File)
Jun 27 2023, 8:06 PM
Subscribers

Details

Reviewers
gnn
Summary

This header file is imported by Golang and converted into a native Golang struct. The char type was therefor converted into int8 which causes issues holding IP address octets. This prevents using MCAST_JOIN_GROUP in Golang on FreeBSD with a setsockopt error since octet 224 will wrap to -32.

Bump FreeBSD version to indicate the struct change.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped