[tor-bugs] #18079 [Stem]: stem can't parse output of resolver "ss -nput"

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jan 16 23:23:19 UTC 2016


#18079: stem can't parse output of resolver "ss -nput"
--------------------+------------------------
 Reporter:  toralf  |          Owner:  atagar
     Type:  defect  |         Status:  new
 Priority:  Medium  |      Milestone:
Component:  Stem    |        Version:
 Severity:  Normal  |     Resolution:
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
  Sponsor:          |
--------------------+------------------------

Comment (by atagar):

 Thanks toralf! Pattern now
 [https://gitweb.torproject.org/stem.git/commit/?id=5f47e1ff4d79d1395e1ebca996931af932d0d3d6
 supports Gentoo] and since your output had IPv6 addresses I was finally
 able to add
 [https://gitweb.torproject.org/stem.git/commit/?id=48dcdb9434924d01915a7d2a937bbbe458369f48
 basic IPv6 support to get_connections()] as well. The later isn't as
 complete as I'd like in that it simply includes IPv6 addresses if present.
 No doubt some resolvers need extra arguments to surface them.

 Tips welcome to expand our IPv6 support. Also, if you have netstat or lsof
 output with IPv6 connections I'd love to expand our unit tests.

 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.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18079#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list