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)

gethostbyaddr.tgz (616 bytes ) - added by mjw 17 years ago.

Download all attachments as: .zip

Change History (4)

by mjw, 17 years ago

Attachment: gethostbyaddr.tgz added

comment:1 by mjw, 17 years ago

Summary: gethostbyaddr issued with INADDR_ANY, INADDR_BROADCAST and INADDR_NONEgethostbyaddr issues with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE

comment:2 by mjw, 17 years ago

This has been fixed by hrev23660, thanks.

comment:3 by axeld, 17 years ago

Resolution: fixed
Status: newclosed

Ah, thanks for the update!

Note: See TracTickets for help on using tickets.