View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0022605FPCRTLpublic2012-08-08 15:182012-08-08 21:51
ReporterMark Morgan Lloyd 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Platformx86OSLinuxOS Version
Product Version2.7.1Product Build 
Target VersionFixed in Version 
Summary0022605: HostAddrToStr6() returns result wrong way round
DescriptionAttached program tests IP address conversion from string to binary and back, and from a binary constant to a string. On little-endian (x86) systems, HostAddrToStr6() appears to behave the same as NetAddrToStr6(); on big-endian (SPARC) this appears to also affect the IP4 functions.

Also affects 2.6.0, not tested 2.6.1. Only tested on Linux.
Additional InformationAlso, when an IP4 connection is accepted on a combined IP6+4 socket on Linux an IP6 socket is returned with a peer address such as ::ffff:ab:cd:ef:01.

There appears to be a convention in e.g. Linux ping6 that this is rendered as e.g. ::ffff:171.205.239.1, could this be added as an option to NetAddrToStr6()?
TagsNo tags attached.
FPCOldBugId
Fixed in Revision
Attached Fileszip file icon testSockAddrConv.zip [^] (547 bytes) 2012-08-08 15:18

- Relationships

-  Notes
(0061525)
Ludo Brands (developer)
2012-08-08 21:12

Regarding the text representation of IPv4 addresses in IPv6 notation see http://tools.ietf.org/html/rfc4291 [^] paragraph 2.2.3

http://tools.ietf.org/html/rfc5952 [^] paragraph 5 actually recommends the mixed notation.
(0061526)
Mark Morgan Lloyd (reporter)
2012-08-08 21:51

Thanks for those Ludo. The comment on representation of port numbers in the second reference is particularly apposite.

I realised shortly after posting that my comment on big-endian (SPARC) systems doesn't make sense under the circumstances.

- Issue History
Date Modified Username Field Change
2012-08-08 15:18 Mark Morgan Lloyd New Issue
2012-08-08 15:18 Mark Morgan Lloyd File Added: testSockAddrConv.zip
2012-08-08 21:12 Ludo Brands Note Added: 0061525
2012-08-08 21:51 Mark Morgan Lloyd Note Added: 0061526



MantisBT 1.2.12[^]
Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker