From e95239a2ec9ac41ba77fac47ae531640bb0f8078 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sat, 23 May 2020 09:24:54 -0700 Subject: [PATCH] Allow ignoring certain nodes (for DSR testing) --- mesh.options | 3 +++ mesh.proto | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/mesh.options b/mesh.options index 7740c14..d5dfe80 100644 --- a/mesh.options +++ b/mesh.options @@ -38,6 +38,9 @@ *SubPacket.payload anonymous_oneof:true +# Max of three ignored nodes for our testing +*UserPreferences.ignore_incoming max_count:3 + # MyMessage.name max_size:40 # or fixed_length or fixed_count, or max_count diff --git a/mesh.proto b/mesh.proto index d87c930..6757a16 100644 --- a/mesh.proto +++ b/mesh.proto @@ -398,6 +398,14 @@ message RadioConfig { // If true, we will try to capture all the packets sent on the mesh, not // just the ones destined to our node. bool promiscuous_mode = 101; + + /** + For testing it is useful sometimes to force a node to never listen to + particular other nodes (simulating radio out of range). All nodenums listed + in ignore_incoming will have packets they send droped on receive (by + router.cpp) + */ + repeated uint32 ignore_incoming = 102; } UserPreferences preferences = 1;