[tor-bugs] #7055 [Tor]: Dir-spec dir-source fields optional?

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Oct 6 19:05:04 UTC 2012


#7055: Dir-spec dir-source fields optional?
---------------------+------------------------------------------------------
 Reporter:  atagar   |          Owner:     
     Type:  defect   |         Status:  new
 Priority:  trivial  |      Milestone:     
Component:  Tor      |        Version:     
 Keywords:           |         Parent:     
   Points:           |   Actualpoints:     
---------------------+------------------------------------------------------
 Hi Nick. Quick question, the 'dir-source' line of network status documents
 is defined as...

 {{{
 "dir-source" SP nickname SP identity SP address SP IP SP dirport SP orport
 NL
 }}}

 The identity, IP, dirport, and orport all have obvious constraints on
 their values but the nickname and address don't. I'm assuming that any
 string excluding spaces and newlines are fine.

 I assume that none of these fields are optional so can either of these be
 an empty string? It would make my life a little easier if they can't (due
 to how keywords/values are split - v3 documents are a little different
 from other descriptor types in that respect and I've been ignoring it).

 Thanks! -Damian

 PS. I've been assuming that anything saying "IP address" means "IPv4
 address" unless specified otherwise. I know that we're trying to branch
 out to add IPv6 support, but I doubt that was the intention when these
 specs were first written and by that reason IPv8 or whatever the future
 holds would also be perfectly valid.

 If this is wrong and "IP address" means something other than "IPv4" then
 let me know. :)

 PPS. Bonus points if these questions are answered via a spec patch!

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


More information about the tor-bugs mailing list