X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=server%2Fserver.rs;h=a493428fc9513e4d08b4e86f0765ce25e2cd6aea;hb=bf74443acd199f601360f30604303052291c7672;hp=309368456f1a76f07bd0c7142d8000a39039a8f0;hpb=c88fd455f807912f4780179a49b2630ca4bdea1b;p=hippotat.git 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(());