[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #12538 [Tor]: A relay is automatically a dir cache



#12538: A relay is automatically a dir cache
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:
  cypherpunks            |     Status:  new
         Type:  task     |  Milestone:  Tor: 0.2.6.x-final
     Priority:  normal   |    Version:  Tor: unspecified
    Component:  Tor      |   Keywords:  tor-guard, tor-relay, prop237
   Resolution:           |  026-triaged-1
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+-------------------------------------------------

Comment (by nickm):

 To implement the relay side of this: Most of the stuff that checks
 options->DirPort_set should now call some function that wraps
 server_mode().  And add the appropriate fields to the router descriptor
 generated in router_dump_router_to_string.

 To implement the authority side: add a supports_tunnelled_dir_requests
 field to routerinfo_t, and have that field get set in
 router_parse_entry_from_string when the appropriate entry is present in
 the descriptor, OR whenever DirPort is nonzero.  Then copy it into a new
 "is_v2_dir" field in routerstatus when generating routerstatus entries in
 set_routerstatus_from_routerinfo().  Lastly, look at is_v2_dir in
 routerstatus when deciding whether to emit V2Dir in
 routerstatus_format_entry().

 To implement the client side: adjust the node_is_dir function so that it
 returns true if it has a dirport, or if it has a routerinfo with a
 supports_tunnelled_dir_requests field, or if it has a routerstatus with
 the is_v2_dir field set.  Finally, adjust
 router_pick_directory_server_impl() so that it checks node_is_dir()
 instead of status->dir_port.

 (Then, audit the rest of the code that uses these functions, and test that
 it won't do anything funny, like try to make connections to port 0.  Test,
 test, test.)

 Anybody want to take a stab at some or all of this?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12538#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs