Improved exit policy syntax; basic client-side DNS caching.
commita8eaa79e031ee04d44d9ed919ed77c7a2e0acba2
authorNick Mathewson <nickm@torproject.org>
Fri, 14 Nov 2003 20:45:47 +0000 (14 20:45 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 14 Nov 2003 20:45:47 +0000 (14 20:45 +0000)
tree5fc60ec64ad07b6b2ecc6ce4c44eae22e61e7398
parent273da1d3c425464dffa525a853096d0dde93aafb
Improved exit policy syntax; basic client-side DNS caching.

- Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and bitcounts
  18.0.0.0/8.  Policies are parsed on startup, not when comparing to them.

- desired_path_len is now part of an opaque cpath_build_state_t structure.

- END_REASON_EXITPOLICY cells no longer include a port.

- RELAY_COMMAND_CONNECTED cells now include the IP address we've connected
  to.

- connection_edge now has a client_dns cache to remember resolved addresses.
  It gets populated by RELAY_COMMAND_CONNECTED cells and END_REASON_EXITPOLICY
  cells.  It gets used by connection_ap_handshake_send_begin.  We don't
  compare it to exit policies yet.

svn:r812
src/or/circuit.c
src/or/connection_edge.c
src/or/onion.c
src/or/or.h
src/or/routers.c
src/or/test.c