Closed
Bug 24906
Opened 25 years ago
Closed 25 years ago
PR_IsNetAddrType() cleanups
Categories
(NSPR :: NSPR, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgmyers, Assigned: srinivas)
Details
Attachments
(2 files)
6.31 KB,
patch
|
Details | Diff | Splinter Review | |
8.90 KB,
patch
|
Details | Diff | Splinter Review |
Some protocols, such as FTP, will need to know if an address is v4 or v4mapped.
Reporter | ||
Comment 1•25 years ago
|
||
Reporter | ||
Comment 2•25 years ago
|
||
Proposed patch also fixes PR_IsNetAddrType(PR_IpAddrLoopback) to recognized v4 mapped loopback addresses.
Reporter | ||
Comment 3•25 years ago
|
||
Should PR_IsNetAddrType(::FFFF:0, PR_IpAddrAny) return PR_TRUE ?
Reporter | ||
Comment 4•25 years ago
|
||
I'm working on cleaning up PR_IsNetAddrType(), will submit new patch and reassign back when done.
Assignee: srinivas → jgmyers
Status: ASSIGNED → NEW
Comment 5•25 years ago
|
||
We should check RFC 2553 to see if it has any guidance on whether ::FFFF:0 should be considered a wildcard address, and similarly, whether ::FFFF:127.0.0.1 should be considered a loopback address for IPv6.
Reporter | ||
Comment 6•25 years ago
|
||
Changing summary, was "Need mechanism for determining if addr is v4 or v4mapped" RFC 2553 is a bit silent on the issue. I can't help but to think ::FFFF:127.0.0.1 must be considered a loopback address, as that is what NSPR will generate in some cases.
Summary: Need mechanism for determining if addr is v4 or v4mapped → PR_IsNetAddrType() cleanups
Reporter | ||
Comment 7•25 years ago
|
||
Reporter | ||
Comment 8•25 years ago
|
||
Latest proposed fix also extends PR_IpAddrLoopback to match any v4 address in net 127.
Reporter | ||
Comment 10•25 years ago
|
||
I misspelled IN6_IS_ADDR_UNSPECIFIED in the 1/25/00 patch by leaving out an F.
Assignee | ||
Comment 11•25 years ago
|
||
Checked in the modifications, but for the following: - recognize Ipv4 addresses as Ipv4-mapped addresses - PR_IpAddrLoopback to match any v4 address in net 127 These modifications don't seem correct. /cvsroot/mozilla/nsprpub/pr/src/misc/prnetdb.c, new revision: 3.11.4.6 /cvsroot/mozilla/nsprpub/pr/tests/gethost.c, new revision: 3.1.18.3
Status: NEW → ASSIGNED
Reporter | ||
Comment 12•25 years ago
|
||
Good enough, I think you can resolve this fixed. You probably should remove the extern declaration of ConvertToIpv4NetAddr() in prnetdb.c as it is no longer referenced.
Assignee | ||
Comment 13•25 years ago
|
||
Markingfixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•