congestion_control.trunnel (608B)
1 /* This file contains the definition for the encrypted payload of a circuit 2 * parameter negotiation request/response portion of the trn_ntorv3 onionskin 3 * handshake. Currently only supports congestion control params. */ 4 5 /* The following is encoded in the extension format. */ 6 7 /* Field types. */ 8 const TRUNNEL_EXT_TYPE_CC_FIELD_REQUEST = 0x01; 9 const TRUNNEL_EXT_TYPE_CC_FIELD_RESPONSE = 0x02; 10 11 /* 12 * "Request" is an empty payload signalling that CC is enabled. 13 */ 14 15 /* 16 * "Response" consists of 1 single byte: 17 * SENDME_INC -- Min: 0, Max: 255 18 */ 19 20 struct trn_extension_field_cc { 21 u8 sendme_inc; 22 };