Opened 17 years ago
Closed 17 years ago
#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/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
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 hrev23246 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 (1)
Change History (4)
by , 17 years ago
Attachment: | gethostbyaddr.tgz added |
---|
comment:1 by , 17 years ago
Summary: | gethostbyaddr issued with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE → gethostbyaddr issues with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE |
---|
This has been fixed by hrev23660, thanks.