aboutsummaryrefslogtreecommitdiff
path: root/src/trunnel/circ_params.trunnel
blob: 74f84b05ff7d94f2a3a466f0c1457a770a3a6995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* This file contains the definition for the encrypted payload of 
 * a circuit parameter negotiation request/response portion of the
 * ntorv3 onionskin handshake. Currently only supports congestion
 * control params. */

/* Param definitions */
struct circ_params_request {
  /* Version */
  u8 version IN [0];

  /* Is cc supported or not? */
  u8 cc_supported IN [0, 1];
}

/* Param definitions */
struct circ_params_response {
  /* Version */
  u8 version IN [0];

  /* Is cc supported or not? */
  u8 cc_enabled IN [0, 1];

  /* How many cells does a SENDME ack? */
  u8 sendme_inc_cells;
}