Ticket #1698 (closed bug: fixed)
gethostbyaddr issues with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE
| Reported by: | mjw | Owned by: | axeld |
|---|---|---|---|
| Priority: | normal | Milestone: | R1 |
| Component: | Network & Internet/Stack | Version: | R1 development |
| Cc: | Blocked By: | ||
| Platform: | All | Blocking: |
Description
gethostbyaddr does not return in a timely fashion when getting host infotmation for INADDR_ANY, INADDR_BROADCAST or INADDR_NONE. I'm not sure how log it takes, I have not waited that long. I would expect gethostbyaddr(INADDR_ANY,...) to return a NULL pointer instantly.
I am using Haiku r23246 on qemu.
I have attached a test case. The .tgz file should be extracted into $HAIKU/src/apps and $(HAIKU)/src/apps/Jamfile modified accordingly. The test gets host information for localhost, then a Yahoo address, then the three troublesome addresses. localhost and the Yahoo addresses work correctly, the others do not.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
