Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1751186ybd; Thu, 27 Jun 2019 00:43:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIDo9YHD+34D0GWWzG0GBtjaQDwZWNpcRiSwhtAKWu5AevYV6aGAEwTTMysxVQ3j2Ehfw1 X-Received: by 2002:a17:90a:d996:: with SMTP id d22mr4371270pjv.86.1561621388053; Thu, 27 Jun 2019 00:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561621388; cv=none; d=google.com; s=arc-20160816; b=z9WlQqNSfANuhlRdjKVFDnLP6pyI5rRKVKkzkL/hK7d+Ecz7Ay+uukAi349Q9RfHs/ kJh3zpaKA6CRls39qEJj6a6bvXjIVPD7pFgMdwYdnlAjef4fq0D/sG4xZxa0zGnsJzsg xie5BeUry1+aXcVor5QdlPBcj9AECnFqppXaNskEX+1hD3W6oIu5m8j+wyCGT2GLVINQ UqYgcbgLaVGOCA2eAZCrUtF0bNrSi8T++9u00xMJymvA9wOyFjgqBzGtpLGaCjSvlsYY EvrPkzX0kR4F1qP6L1sHsiX+fNeCAp42oXrOcCETdtxrYu/Aoziicx14pwHeRTXNIvNE WOWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=rrbnizIHqm0XAdDYCcHN6SLMKKIXYKONZz8BXIlwiHU=; b=jnWk6troCk2iwsOkQAMfsCGoxYsALPr4m8serJLjAE7bIKtajSsvzjkyLRwdxgdGF9 GKtuZzRW0E+mkaVUXFYqHYk4aDktZmV2rECEujC2BBheKosXIlLePMNa/2P8ZcRmQ3du qhoUeZZW7ViIgv9lq924awWgCPHsW/vIRz+Uh+Jd2RF/ogkAZ7uaeUs5iVb5+ClQmVFh SLIPrApSO4OFvFKHYF/jLZYl5+uBchdYcK09U1/PybtrZgmtFUXE9GvSfH7PhAzpJe9z oAC1+2y6g1sMFYmRM7JmAhj/3LXnRnbAvtSRJkRflGcT35IirJ+OE3pHyC+SiBX705vk frWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=dcDwEtwS; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65si1681809ple.240.2019.06.27.00.42.50; Thu, 27 Jun 2019 00:43:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=dcDwEtwS; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbfF0Hku (ORCPT + 99 others); Thu, 27 Jun 2019 03:40:50 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:36220 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbfF0Hku (ORCPT ); Thu, 27 Jun 2019 03:40:50 -0400 Received: by mail-lf1-f50.google.com with SMTP id q26so881400lfc.3 for ; Thu, 27 Jun 2019 00:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=rrbnizIHqm0XAdDYCcHN6SLMKKIXYKONZz8BXIlwiHU=; b=dcDwEtwSsVgExMcdRsJuxHpGJWceUHWkBH5uVdT549nCEsU1u0PkjFpt9keFHVqqCx qKvHAUMuRIzbJqDJuUFtpQg8fiELEmMMgiI3EirCCUImwxA4Vg6PviEaCqK84fAFNFSF 7yjogUvaCmFuBb9imBWYAngvUvQWz5YheZ68Rx49NIrdtu+RZGtzeyLvSQabo8l79zIC NBefKyODFLNleH4u7xDlqAi+2mqSTXvy5C1990J8N7iFSAqScCsI9CcHy7fmtCVQijXI jaq33jElychcuSaeO6k2pOOnS1Ah9LQcLKfjY81Hkc473ljHYJila1SCp3WsjrV71140 zXGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=rrbnizIHqm0XAdDYCcHN6SLMKKIXYKONZz8BXIlwiHU=; b=Li4OeZ6RriUWF0Boiwmm7RJx5zZHmNcteTgrCY9Wh025yqGC5YHCwR3aXagoN/mElR cikJ4njKPemR+RuWskkJ0H4KluMjjqAlVTt9UU5+akxXwtU4GvmIx+SolRBKYfSLv2yf h10viOqEHhprsxt4TgnAB8ME8EURGPqZeWK4P76UJGpjYePAWrvhhtBQwwP4rcP3YNzA mxP6Qzjevd+2aQ49CuTarhh86BFlvPjNfwDtzmODtliL2xWoFX4YBHuim8q1g4u8ZDrR 6E8rDPY9vrPUBpwlq1ecoHRj5rgI3O0SeASJYOc3XivZbtGX+Z+JQ5chB5t9wpBOpvqF yEqw== X-Gm-Message-State: APjAAAU5EFSoPrsqIQcw7zG6mitFcHleTjqNTP4Id8otkQ8TmtBkrtW8 xxu3f5Dbg3CVnNatGHEUlmzyJRW8yWA= X-Received: by 2002:a19:6e41:: with SMTP id q1mr1339032lfk.20.1561621247661; Thu, 27 Jun 2019 00:40:47 -0700 (PDT) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id 199sm223775ljf.44.2019.06.27.00.40.46 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 00:40:46 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v3 0/2] mesh: Fix IV Index handling during IV Update Date: Thu, 27 Jun 2019 09:40:41 +0200 Message-Id: <20190627074043.22891-1-michal.lowas-rzechonek@silvair.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patchset fixes handling of IV Index during IV Update procedure: - use incoming IV Index in both network and application/device nonce, according to incoming IVI field - use current IV Index when relaying packets, according to IV Update state See Mesh Profile v1.0.1, section 3.10.5. MichaƂ Lowas-Rzechonek (2): mesh: Fixed handling of IVI flag in app layer mesh: Use current IV Index when relaying mesh/net-keys.c | 6 ------ mesh/net.c | 17 ++++++++--------- 2 files changed, 8 insertions(+), 15 deletions(-) -- 2.19.1