From 07e4b09b5f27326a1aa58b5b2ed3c25ceb5a6db6 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 3 May 2019 13:24:06 -0400 Subject: sendme: Add FlowCtrl protover value See proposal 289 section 4.3 for more details. It describes the flow control protocol at the circuit and stream level. If there is no FlowCtrl protocol version, tor supports the unauthenticated flow control features from its supported Relay protocols. At this commit, relay will start advertising FlowCtrl=1 meaning they support authenticated SENDMEs v1. Closes #30363 Signed-off-by: David Goulet --- src/rust/protover/ffi.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rust/protover/ffi.rs') diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs index 066b08eddb..14170d0353 100644 --- a/src/rust/protover/ffi.rs +++ b/src/rust/protover/ffi.rs @@ -31,6 +31,7 @@ fn translate_to_rust(c_proto: uint32_t) -> Result { 8 => Ok(Protocol::Microdesc), 9 => Ok(Protocol::Cons), 10 => Ok(Protocol::Padding), + 11 => Ok(Protocol::FlowCtrl), _ => Err(ProtoverError::UnknownProtocol), } } -- cgit v1.2.3-54-g00ecf