From: Ian Jackson Date: Sat, 21 Aug 2021 23:20:55 +0000 (+0100) Subject: Note about packet loops X-Git-Tag: hippotat/1.0.0~121 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=bf74443acd199f601360f30604303052291c7672 Note about packet loops Signed-off-by: Ian Jackson --- diff --git a/server/server.rs b/server/server.rs index 3093684..a493428 100644 --- a/server/server.rs +++ b/server/server.rs @@ -39,6 +39,11 @@ pub struct RoutedPacket { pub type RoutedPacketData = Box<[u8]>; // loop prevention +// we don't decrement the ttl (naughty) but loops cannot arise +// because only the server has any routing code, and server +// has no internal loops, so worst case is +// client if -> client -> server -> client' -> client if' +// and the ifs will decrement the ttl. mod may_route { #[derive(Clone,Debug)] pub struct MayRoute(());