Ticket #1698 (closed bug: fixed)

Opened 11 months ago

Last modified 10 months ago

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

gethostbyaddr.tgz (0.6 kB) - added by mjw 11 months ago.

Change History

Changed 11 months ago by mjw

Changed 11 months ago by mjw

  • summary changed from gethostbyaddr issued with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE to gethostbyaddr issues with INADDR_ANY, INADDR_BROADCAST and INADDR_NONE

Changed 10 months ago by mjw

This has been fixed by r23660, thanks.

Changed 10 months ago by axeld

  • status changed from new to closed
  • resolution set to fixed

Ah, thanks for the update!

Note: See TracTickets for help on using tickets.