In routerlist_assert_ok(), check r2 before taking &(r2->cache_info)
[tor.git] / src / or / circuitmux_ewma.h
bloba512745c778e8759aa7b174bef3d4d06e54b1a85
1 /* * Copyright (c) 2012-2013, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 /**
5 * \file circuitmux_ewma.h
6 * \brief Header file for circuitmux_ewma.c
7 **/
9 #ifndef TOR_CIRCUITMUX_EWMA_H
10 #define TOR_CIRCUITMUX_EWMA_H
12 #include "or.h"
13 #include "circuitmux.h"
15 /* Everything but circuitmux_ewma.c should see this extern */
16 #ifndef TOR_CIRCUITMUX_EWMA_C_
18 extern circuitmux_policy_t ewma_policy;
20 #endif /* !(TOR_CIRCUITMUX_EWMA_C_) */
22 /* Externally visible EWMA functions */
23 int cell_ewma_enabled(void);
24 unsigned int cell_ewma_get_tick(void);
25 void cell_ewma_set_scale_factor(const or_options_t *options,
26 const networkstatus_t *consensus);
28 #endif /* TOR_CIRCUITMUX_EWMA_H */