Ticket #2103 (closed bug: fixed)
Some functions in network library do not work on NetBSD
|Reported by:||iquiw||Owned by:|
|Type of failure:||Difficulty:||Unknown|
|Test Case:||Blocked By:|
I found two problems in network library that occurs on NetBSD.
I created a patch to fix them. I tested it on NetBSD only.
(1) listenOn does not work with numerical port number.
This is caused by getAddrInfo used in listen' function.
On NetBSD, we need to specify addrSocketType of addrinfo hints for getAddrInfo.
I think this bug happens on FreeBSD also though I did not confirm it.
(2) getNameInfo fails always.
This is because of difference of sockaddr structure.
struct sockaddr_* has its struct size as the first member of struct on *BSD system, but pokeSockAddr does not poke it.
AFAIK, only NetBSD check this size strictly.