Skip to content

Some functions in network library do not work on NetBSD

I found two problems in network library that occurs on NetBSD.[[BR]] I created a patch to fix them. I tested it on NetBSD only.

(1) listenOn does not work with numerical port number.[[BR]] This is caused by getAddrInfo used in listen' function.[[BR]] On NetBSD, we need to specify addrSocketType of addrinfo hints for getAddrInfo.[[BR]] I think this bug happens on FreeBSD also though I did not confirm it.

(2) getNameInfo fails always.[[BR]] This is because of difference of sockaddr structure.[[BR]] struct sockaddr_* has its struct size as the first member of struct on *BSD system, but pokeSockAddr does not poke it.[[BR]] AFAIK, only NetBSD check this size strictly.

Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/network
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture Unknown
Edited by iquiw
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information