Parent: 3ed6e9f90c301536c332b52946347d6b70fb8d3c
Author: Brian Gix <brian.gix@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2019-12-16 18:18:20
Tree: 695dc54afbdaba83f94e0979ad47992b6671d2b3
mesh: Refactor Secure Network Beaconing The daemon handles multiple nodes, that may or may not be on the same mesh network. While each node my be seperately configured to beacon or not beacon, there is nothing gained (except redundent traffic) for each node to beacon seperately. Beaconing is therefore centralized with the Network Key the SNB represents, with each *received* beacon delivered to each node. But for SNBs generated, we keep a count of how many nodes want beacons sent for a specific key. If 1 or more, we beacon, if 0 nodes want the beacon sent, then we do not beacon.
Diffstat
| M | mesh/mesh-io.c | | | 3 | +++ |
| M | mesh/net-keys.c | | | 204 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - |
| M | mesh/net-keys.h | | | 8 | ++++++++ |
| M | mesh/net.c | | | 350 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | mesh/net.h | | | 3 | +++ |
5 files changed, 326 insertions(+), 242 deletions(-)