Skip to content

mesh: Propagate/Preserve Net Index for Access Layer

Brian Gix linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mesh: Add bound Net Index lookup for App Keysmesh/appkey.c mesh/appkey.h+39 -210 replies
2/3mesh: Normalize Access Key AID naming conventionmesh/crypto.c mesh/crypto.h mesh/net.h+23 -260 replies
3/3mesh: Propagate Net Index up Rx message chainmesh/cfgmod-server.c mesh/model.c mesh/model.h +3 more+214 -1871 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH BlueZ 0/3] mesh: Propagate/Preserve Net Index for Access Layer

Two major flaws are corrected by this patch-set:

1. The Spec defined Access Layer AID was being confused with the internally used key_id which is used to identify Network keys for multiple networks, sub-networks, and friendships. This confused ID was then being used instead of the correct Network Key ID for outgoing messages.

2. The specification requires *responses* to all standard Server messages to be sent with the same credentials as the received command that triggered them. This requires more complete propagation of the Net Index value on received messages, so that the same Network key is used in the reverse direction.

This additionally now uses the requested Net Index when sending Device Key secured messages through the D-Bus interface.

Brian Gix (3):
mesh: Add bound Net Index lookup for App Keys
mesh: Normalize Access Key AID naming convention
mesh: Propagate Net Index up Rx message chain

 mesh/appkey.c        |  59 +++++++++++++-------
 mesh/appkey.h        |   1 +
 mesh/cfgmod-server.c | 154 ++++++++++++++++++++++++++++-----------------------
 mesh/crypto.c        |  37 ++++++-------
 mesh/crypto.h        |   8 +--
 mesh/model.c         | 129 +++++++++++++++++++++---------------------
 mesh/model.h         |  10 ++--
 mesh/net.c           |  92 +++++++++++++++++-------------
 mesh/net.h           |  10 ++--
 mesh/node.c          |  10 ++--
 10 files changed, 276 insertions(+), 234 deletions(-)
Signature · 1 line
2.14.5