In routerlist_assert_ok(), check r2 before taking &(r2->cache_info)
[tor.git] / src / or / command.h
blobadea6adeaa44afede7d99dfaff719ac693ae7855
1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2013, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 /**
8 * \file command.h
9 * \brief Header file for command.c.
10 **/
12 #ifndef TOR_COMMAND_H
13 #define TOR_COMMAND_H
15 #include "channel.h"
17 void command_process_cell(channel_t *chan, cell_t *cell);
18 void command_process_var_cell(channel_t *chan, var_cell_t *cell);
19 void command_setup_channel(channel_t *chan);
20 void command_setup_listener(channel_listener_t *chan_l);
22 const char *cell_command_to_string(uint8_t command);
24 extern uint64_t stats_n_padding_cells_processed;
25 extern uint64_t stats_n_create_cells_processed;
26 extern uint64_t stats_n_created_cells_processed;
27 extern uint64_t stats_n_relay_cells_processed;
28 extern uint64_t stats_n_destroy_cells_processed;
30 #endif