1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use crateIdent32;
/// Represent a set of direct peers
///
/// A neighbour is another Ratman router that is directly connected to
/// the current one. A direct neighbour may know the current device
/// IP address, or the router identification keys of our peers.
///
/// In this context a `Neighbour` represents a set of direct peers that we can
/// pass messages to. In some cases we may want to address them all, just a
/// subset, or none of them, for example if a packet is being filtered from
/// crossing subnets or when de-duplicating flood events to the origin to
/// prevent infinite replication.