The first 3 patches replace further magic numbers by preprocessor defines (no functional changes). Patch 4 tries to improve readabilty, while 5 and 6 are only cleanups (these patches have already been submitted in my previous series, but were not merged without any notice). Patch 7 and 8 are further simplifications/cleanups, while the last patch fixes a serious bug which causes corruption in all relayed packets. Maybe this NEVER worked correctly, although this is a major feature of Bluetooth Mesh. At leat this one should get reviewied by a Mesh expert. v2: - Fix declaration after statement error in patch 9