OpenClonk Bugtracker - OpenClonk
View Issue Details
0001998OpenClonkEngine - Networkpublic2018-02-12 19:492018-02-17 12:00
ReporterLuchs 
Assigned ToLuchs 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSFreeBSDOS Version
Product Version8.0 
Target VersionFixed in Version8.1 
Summary0001998: Networking does not work on FreeBSD
DescriptionOn FreeBSD, sizeof(struct sockaddr_in) != sizeof(struct sockaddr_in6). This breaks C4NetIOTCP::Connect() which calls connect(2) with sizeof(C4NetIO::addr_t) which is a union of sockaddr_in and sockaddr_in6.

To fix this, we will need to make that size parameter dependent on the address family stored within.
TagsNo tags attached.
Attached Filespatch freebsd.patch (1,263) 2018-02-13 01:59
https://bugs.openclonk.org/file_download.php?file_id=706&type=bug

Notes
(0006130)
Clonkonaut   
2018-02-13 01:59   
Partmedia provided us with this patch to fix the problem!
(0006138)
occ   
2018-02-17 11:59   
Hi! There's been a check-in that references this bug. For more information you can visit the repository browser at this address:
https://git.openclonk.org/openclonk.git/commitdiff/0c8371f113386026bfbd534c7dd341aa7db28fba

Changeset 0c8371f by Kevin Zheng <kevinz5000@gmail.com>
Fix networking on FreeBSD (0001998)

(0006142)
Luchs   
2018-02-17 12:00   
I applied the patch.

Issue History
2018-02-12 19:49LuchsNew Issue
2018-02-12 19:49LuchsStatusnew => assigned
2018-02-12 19:49LuchsAssigned To => Luchs
2018-02-13 01:59ClonkonautFile Added: freebsd.patch
2018-02-13 01:59ClonkonautNote Added: 0006130
2018-02-17 11:59occNote Added: 0006138
2018-02-17 12:00LuchsStatusassigned => resolved
2018-02-17 12:00LuchsResolutionopen => fixed
2018-02-17 12:00LuchsFixed in Version => 8.1
2018-02-17 12:00LuchsNote Added: 0006142