Ticket #2103 (closed bug: fixed)
Some functions in network library do not work on NetBSD
| Reported by: | iquiw | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 6.8.3 |
| Component: | libraries/network | Version: | 6.8.3 |
| Keywords: | network | Cc: | |
| Operating System: | NetBSD | Architecture: | x86 |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

