Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3036454ybv; Mon, 24 Feb 2020 16:52:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyhA9qxX8fUUY8UnaXZHWOowtGF7HXnBK/+Lt51mmyr+AsD5GnE2AyE9feSVBam9v/7VFfc X-Received: by 2002:a9d:3b84:: with SMTP id k4mr29638051otc.18.1582591924954; Mon, 24 Feb 2020 16:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582591924; cv=none; d=google.com; s=arc-20160816; b=0kT8nR/DJADlSJyZgrVXSPSB9cwAkgEZSsME/zHUjKfW36LH8L/LG2h32pPcOeKM7F ZoJDLaPFr2Vre2CIu+i6/YncxUfAqiHV58cOjFCdzTwApJglob57pubywbN5YrySnVxm mi4Mo+LHBW+oOHIlh63zGjuWtDeThiXa3sNksiETqANY1Oep5lzVUmI6sgnIXoI6X4qH XFjex9Lo3ykPsrA9hAnECJT0V0AlfBBEtdoFi2dtZns3RfO84cL2dTsGser2b1CuxzmW t5JuTeqKM7n8no5jnh9R9QrpB0vjHZAwg9RZj3qY/nOaX/nTF7D/U+jIa1S72vVearHO O0yw== 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:cc:to:from; bh=RjOPLGZX0N8SNIX0lZiDVCByBgLnkbLf9Xehn/6DRjs=; b=Fxm9OS+CfjuMEzLqcDgDM8z6Fp7W80H/LA+9JUgNJPThW/U67Th8xjBgGk4hazVorp F6J5CUlUOj6kyfXmIjaWn1grCe1Y107Ni54N4WxMqVaZqxOJ7Uh0OYVC3kAq3vCsykPo R5QpK/z+vhkasqb7+kgdVKaIaqH1MOFBv/0v3+BgZaIUZxfeTud8WiBq1H6BaZBLudNT vX27irabzFtjG++OddD+Ryic2CTEjKFh0ehBb2aFE91j4ym19aWKn9aHXBnc2NR2NTru RcmZ5aRGfYD+TwnzlPknxZJtw8Lo2+tZOM75anN89CJBlII3hqd7B0VcUvnaIqBaIuGb slzg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si4989994oie.180.2020.02.24.16.51.44; Mon, 24 Feb 2020 16:52:04 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbgBYAvo (ORCPT + 99 others); Mon, 24 Feb 2020 19:51:44 -0500 Received: from mga14.intel.com ([192.55.52.115]:60206 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727976AbgBYAvn (ORCPT ); Mon, 24 Feb 2020 19:51:43 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2020 16:51:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,482,1574150400"; d="scan'208";a="436095365" Received: from ingas-nuc1.sea.intel.com ([10.251.142.189]) by fmsmga005.fm.intel.com with ESMTP; 24 Feb 2020 16:51:42 -0800 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ 0/5 v2] Support for virtual labels Date: Mon, 24 Feb 2020 16:51:35 -0800 Message-Id: <20200225005141.9700-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org v2: Fixed a backwards compatibility issue reported by Brian; Fixed Python test to correctly display updated configuration ***************************** This patch set adds a capability to mesh-cfgclient to generate and store virtual labels and use them in configuring remote node's publications and subscriptions. Regular group addresses are preeserved as well. This is done dynamically: as a new group address is detected in either subscription or publication configuration commands. This new capability of mesh-cfgclient allowed for improved testing of virtual pub/sub implementation in bluetooth-meshd daemon. As a result, some deficiencies and legacy entaglements were exposed, and consequently resolved and cleaned up. Inga Stotland (5): tools/mesh-cfgclient: Add support for virtual labels tools/mesh-cfgclient: Save and restore group addresses mesh: Simplify model virtual pub/sub logic mesh: Clean up handling config model publication message test/test-mesh: Fix output of UpdateModelConfig method Makefile.tools | 3 +- mesh/cfgmod-server.c | 131 ++++++++-------------- mesh/model.c | 258 +++++++++++++++++-------------------------- mesh/model.h | 9 +- test/test-mesh | 11 +- tools/mesh/cfgcli.c | 202 ++++++++++++++++++++++++++++++--- tools/mesh/cfgcli.h | 5 + tools/mesh/mesh-db.c | 128 +++++++++++++++++++++ tools/mesh/mesh-db.h | 4 + 9 files changed, 480 insertions(+), 271 deletions(-) -- 2.21.1