diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-05-27 21:02:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-05-27 21:02:36 +0000 |
commit | 4ea2a4595e0331db531d293315be58a21394bd1f (patch) | |
tree | 8dc1a80c21832823ada2fb5b7d71431e6a57cc44 /src/or/or.h | |
parent | 9975c4f6f8c54b150335a5cd6bb7e0e7defbca80 (diff) | |
download | tor-4ea2a4595e0331db531d293315be58a21394bd1f.tar.gz tor-4ea2a4595e0331db531d293315be58a21394bd1f.zip |
Fix the first part of bug 681, as suggested by Robert Hogan on or-talk.
svn:r14754
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 624d407d4c..2ebe7511db 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -369,6 +369,12 @@ typedef enum { #define DIR_PURPOSE_FETCH_RENDDESC_V2 18 #define _DIR_PURPOSE_MAX 18 +#define DIR_PURPOSE_IS_UPLOAD(p) \ + ((p)==DIR_PURPOSE_UPLOAD_DIR || \ + (p)==DIR_PURPOSE_UPLOAD_RENDDESC || \ + (p)==DIR_PURPOSE_UPLOAD_VOTE || \ + (p)==DIR_PURPOSE_UPLOAD_SIGNATURES) + #define _EXIT_PURPOSE_MIN 1 /** This exit stream wants to do an ordinary connect. */ #define EXIT_PURPOSE_CONNECT 1 |