Allow ignoring certain nodes (for DSR testing)

pull/2/head
geeksville 2020-05-23 09:24:54 -07:00
rodzic 2cb162a303
commit e95239a2ec
2 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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;