Skip to content

mesh: Add NVM storage of Replay Protection List

Brian Gix linux-bluetooth 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 1 replyIn review
  2. v45 patches 3 repliesSuperseded
  3. v35 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches2 repliesSuperseded
v15 patches0 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mesh: Relocate tree deletion to util.c/hmesh/mesh-config-json.c mesh/util.c mesh/util.h+27 -190 replies
2/5mesh: Move Replay Protection to mesh/net.cmesh/appkey.c mesh/appkey.h mesh/model.c +2 more+99 -1150 replies
3/5mesh: Clean-up unneeded Sequence Number incrementsmesh/net.c+9 -80 replies
4/5mesh: Apply Replay Protection to all incoming packetsmesh/model.c+7 -90 replies
5/5mesh: Add NVM storage of Replay ProtectionMakefile.mesh mesh/net.c mesh/rpl.c +1 more+334 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH BlueZ v5 0/5] mesh: Add NVM storage of Replay Protection List

Version 5: Extra clean-up fixes added for malformed RPL trees, and iv_index dirs created "as needed" instead of at RPL initialization. (patch 5/5)

Version 4: Style guide fixes from Inga (patch 5/5).

Version 3: Fix problem found by Rafał relating to the handling of sequence numbers of messages being handled internally (loop-backs), which were being rejected by the Replay Protection List (please see patch 3/5).

Version 2: Fix path construction code when first reading RPL from NVM

An oversight led to losing our Replay Protection List with every re-boot. This patch-set makes a number of Replay Protect List modifications that culminate in adding rpl.c/h, which stores the latest iv_index/sequence values for each node that handles an incoming packet.

The first 4 patches, does some maintenance required to handle RPL according the the Mesh Specification.

Brian Gix (5):
mesh: Relocate tree deletion to util.c/h
mesh: Move Replay Protection to mesh/net.c
mesh: Clean-up unneeded Sequence Number increments
mesh: Apply Replay Protection to all incoming packets
mesh: Add NVM storage of Replay Protection

 Makefile.mesh           |   1 +
 mesh/appkey.c           | 102 --------------
 mesh/appkey.h           |   3 -
 mesh/mesh-config-json.c |  20 +--
 mesh/model.c            |  16 +--
 mesh/net.c              | 128 +++++++++++++++---
 mesh/net.h              |   3 +
 mesh/rpl.c              | 289 ++++++++++++++++++++++++++++++++++++++++
 mesh/rpl.h              |  30 +++++
 mesh/util.c             |  25 ++++
 mesh/util.h             |   1 +
 11 files changed, 468 insertions(+), 150 deletions(-)
 create mode 100644 mesh/rpl.c
 create mode 100644 mesh/rpl.h
Signature · 1 line
2.21.1