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;