Commit: da429de905ed87f7d530ca29284aedfad848f227
Parent: 8457e6a3ad147c1167862f148cbbf281d879e874
Author: Brian Gix <brian.gix@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2020-01-31 20:15:08
Tree: aab7add25ec49d0e667390761943b6af31e2343f

mesh: Re-arrange replay protection check and add Re-arranged for efficiency. Replay Protection was set up as an atomic check-and-add operation. Now we check the message early so we can discard it without taking further action, and only add it to the RPL once fully verified that it was authorized and addressed to us.

Diffstat

M mesh/model.c | 23 ++++++++++- - - - - - - - - - - - -
M mesh/net.c | 62 +++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M mesh/net.h | 7 ++++- - -

3 files changed, 45 insertions(+), 47 deletions(-)

View Full Diff | Patch