diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-27 06:37:56 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-27 06:37:56 +0000 |
commit | 7a79acd9f6d377533940ee12fcb3afaaa982b04d (patch) | |
tree | e49a435a3f3a5fc4f4cda38aa060d010675988c9 /src/or/or.h | |
parent | ce854906db41e8e21a9cb8d42fcb63e469ca2b28 (diff) | |
download | tor-7a79acd9f6d377533940ee12fcb3afaaa982b04d.tar.gz tor-7a79acd9f6d377533940ee12fcb3afaaa982b04d.zip |
clean up socks reply stuff more.
add a few more reasons so we can be more informative.
svn:r3895
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index c040c588c1..8c0d144b6a 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -430,6 +430,14 @@ typedef enum { #define END_STREAM_REASON_CONNRESET 12 #define END_STREAM_REASON_TORPROTOCOL 13 +/* These high-numbered end reasons are not part of the official spec, + * and are not intended to be put in relay end cells. They are here + * to be more informative when sending back socks replies to the + * application. */ +#define END_STREAM_REASON_ALREADY_SOCKS_REPLIED 256 +#define END_STREAM_REASON_CANT_ATTACH 257 +#define END_STREAM_REASON_NET_UNREACHABLE 258 + #define RESOLVED_TYPE_HOSTNAME 0 #define RESOLVED_TYPE_IPV4 4 #define RESOLVED_TYPE_IPV6 6 |