PR_GetHostByAddr() fails on IPv4 mapped IPv6 addresses

RESOLVED FIXED

Status

defect
P3
normal
RESOLVED FIXED
20 years ago
18 years ago

People

(Reporter: jgmyers, Assigned: srinivas)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

Reporter

Description

20 years ago
On systems without _PR_INET6 defined, PR_GetHostByAddr() is failing on IPv4
mapped IPv6 addresses.

To test, apply the attached patch to pr/tests/gethost.c and try

gethost -6 www.netscape.com
Assignee

Comment 3

20 years ago
The fix for PR_GetHostByAddr to handle Ipv6 addresses correctly is checked in. 

Files modified:

/cvsroot/mozilla/nsprpub/pr/include/md/_solaris.h,v  <--  _solaris.h
new revision: 3.10.4.3; previous revision: 3.10.4.2
/cvsroot/mozilla/nsprpub/pr/src/io/pripv6.c,v  <--  pripv6.c
new revision: 3.2.58.5; previous revision: 3.2.58.4
/cvsroot/mozilla/nsprpub/pr/src/misc/prnetdb.c,v  <--  prnetdb.c
new revision: 3.11.4.10; previous revision: 3.11.4.9
/cvsroot/mozilla/nsprpub/pr/tests/gethost.c,v  <--  gethost.c
new revision: 3.1.18.5; previous revision: 3.1.18.4
Status: NEW → ASSIGNED
Reporter

Comment 4

20 years ago
The patch fails to compile on NT, with an undeclared identifier 'AF_INET6' on 
line 617.
Assignee

Comment 5

20 years ago
Fixed the 'AF_INET6-not-defined" error.

File modified:
/cvsroot/mozilla/nsprpub/pr/src/misc/prnetdb.c,v  <--  prnetdb.c
new revision: 3.11.4.11; previous revision: 3.11.4.10
Assignee

Comment 6

20 years ago
Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.