diff options
author | Roger Dingledine <arma@torproject.org> | 2002-06-26 22:45:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2002-06-26 22:45:49 +0000 |
commit | 9a928eeb1215f0d7c9b6d0bb9e4571d0a16ed79a (patch) | |
tree | fac560bf2dce8a8d2b82e296b71ff24f59ab1a7a /src/common/policies.h | |
parent | 766a465a6043ac4e643c398feb14f708fd0d863f (diff) | |
download | tor-9a928eeb1215f0d7c9b6d0bb9e4571d0a16ed79a.tar tor-9a928eeb1215f0d7c9b6d0bb9e4571d0a16ed79a.tar.gz |
Initial revision
svn:r2
Diffstat (limited to 'src/common/policies.h')
-rw-r--r-- | src/common/policies.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/common/policies.h b/src/common/policies.h new file mode 100644 index 000000000..78ba20c50 --- /dev/null +++ b/src/common/policies.h @@ -0,0 +1,39 @@ +/** + * policies.h + * Traffic shaping policies for the network funnel. + * + * Matej Pfajfar <mp292@cam.ac.uk> + */ + +/* + * Changes : + * $Log$ + * Revision 1.1 2002/06/26 22:45:50 arma + * Initial revision + * + * Revision 1.2 2002/03/12 23:42:37 mp292 + * Various bugfixes. + * + * Revision 1.1 2002/03/03 00:03:49 mp292 + * Moved from or/network (merged core and network funnel into a single thread). + * + * Revision 1.3 2002/02/09 17:00:42 mp292 + * Added core_sock to list of parameters for comms with the router core. + * + * Revision 1.2 2002/02/03 22:40:44 mp292 + * Changes to cell size. + * + * Revision 1.1 2002/02/03 20:34:38 mp292 + * Traffic shaping policies for the network funnel. + * + */ + + +/* traffic shaping policies */ +#define POLICY_DROP_CONNECTIONS 0 /* buffer data and drop the connections that cannot be allocated resources */ +#define POLICY_DROP_CELLS 1 /* buffer data and drop cells, which can't be bufered, do re-transmission */ + +#define DEFAULT_POLICY POLICY_DROP_CONNECTIONS + +#define DEFAULT_ACK_TIMEOUT 3000 /* ms */ +#define DEFAULT_WINDOW_SIZE 5 /* cells */ |