gethostbyaddr issues with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE
|Reported by:||mjw||Owned by:||axeld|
|Component:||Network & Internet/Stack||Version:||R1/pre-alpha1|
|Has a Patch:||no||Platform:||All|
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.
Change History (4)
comment:1 by , 12 years ago
|Summary:||gethostbyaddr issued with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE → gethostbyaddr issues with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE|