[tor-bugs] #18079 [Stem]: stem can't parse output of resolver "ss -nput"
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Jan 20 22:33:33 UTC 2016
#18079: stem can't parse output of resolver "ss -nput"
--------------------+--------------------------
Reporter: toralf | Owner: atagar
Type: defect | Status: reopened
Priority: Medium | Milestone:
Component: Stem | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Sponsor: |
--------------------+--------------------------
Comment (by cypherpunks):
Replying to [comment:1 atagar]:
> One last thing - in the example you gave above I don't understand the
format of the 'beam' connections (for example **::ffff:5.9.158.75:5222**).
Seems it's an IPv6 address mashed together with an IPv4 address? At
present Stem treats those lines as being malformed.
This is a well-formed IPv6 address, a standard representation produced by
inet_ntop(3).
Please see: https://tools.ietf.org/html/rfc2765. (Warning: at least one
Wikipedia article refers to the revised RFC —which obsoletes this one— but
forgets to update the terminology, resulting in misinformation.)
tl;dr: It's called "IPv4-mapped IPv6 address", in that example the address
is 5.9.158.75 written in IPv6 (port 5222). The full IPv6 address is:
{{{0000:0000:0000:0000:0000:0000:0000:0000:0000:0000:0000:ffff:0005:0009:009e:004b}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18079#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list