Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4300114ybc; Tue, 26 Nov 2019 06:55:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwqMz2OPlYs8nvWpM7pDHS+u8nrM7xtvRchGBpBRlcZs0LXamcqq9ShhAKffcbfTh2q7VsF X-Received: by 2002:a17:906:938d:: with SMTP id l13mr44291282ejx.74.1574780128943; Tue, 26 Nov 2019 06:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574780128; cv=none; d=google.com; s=arc-20160816; b=Ibzc6sYAvkvT5nhOs1NYdjp/+4/bIrTMA5XxXOhr7VxvGiCQGSuLkxjSL0ViPAzdK9 10de/mUc6QzLHv+mZc1C611185zXLgcT8P8YMiNSrJ3piRC4Svtb9uBANzNqgfrS/N3M 86/1tj2Akre44YdyS85lVsp7mzbfMk7dOnyKlk4kpkDpzh88B3xvaSSmzEZKj2iFXr1i mHqv28s2wYZBio1hxdt0wijrMBThubrd/ke5n7CRuIM3R6WngVjlQDfXdNSBCDuBEuxb fVPC5+uwR4iK+Spq2LVOGCvM04g5hB1x8abJ6S2JDCu1hy0QltKxqzcbYmNP5jNs+hvc r5ew== 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=iRO8xtnmYKdtUJ9c/POE1IA+LM2yq72+9+Cu/TCPkuY=; b=V9YQrkELGm0H8z8obPPjDebwI67rhKM095IEgaleD/LgF6Bp0IfqoUawC2W8B+d1QC nVpdSrncxALi6Sve0YCtVpw+9Df41cnw74YqFYqpy2+OfbByfZt6KbwiZbJ/QeZqNmSA r3KRoBt3QTlV+Ry7G9JCYSbQySAuO2ejwrIVnrwLyGU8QKJ9WxUUQIhgGAU9GaEujsH0 Nm8ogvKQW9zdXCH/LBt2LcxMF4naDo2MS0wqbBTBz/mesANIzOtdK/ejLk8ruLtAYINx v4VgUmeA4+51z2mAbhQNIEvROtaq5ZgEpup8APkFGr/PmX3NTrMfmFpc4S+XAcR+gZ1S quTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=cjBCh9gq; 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 dd5si6948675ejb.179.2019.11.26.06.54.49; Tue, 26 Nov 2019 06:55:28 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=cjBCh9gq; 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 S1726536AbfKZOyK (ORCPT + 99 others); Tue, 26 Nov 2019 09:54:10 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38590 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfKZOyK (ORCPT ); Tue, 26 Nov 2019 09:54:10 -0500 Received: by mail-lf1-f68.google.com with SMTP id q28so14342205lfa.5 for ; Tue, 26 Nov 2019 06:54:09 -0800 (PST) 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=iRO8xtnmYKdtUJ9c/POE1IA+LM2yq72+9+Cu/TCPkuY=; b=cjBCh9gqcivWiSCL7GPUJ0vBX7PTQ+hI3UuUaHsrNvipfc2q4ZL4aUUpA2tA804i7x rVweupSbVEEl6qaluDvK7YA+XExI7lixhbmVjbVzQHp3K+xkjv6J6SeDnJwEkDExtMAa jDDmGs2jDBZweWUZ+cuVDnV9grPPne7r5yBKZts5r330ST31LhIlYpwyuXNqZ+c1vn8/ IvLKWF49L9PULhHkNKhY9ICVTW1K4vDuU/yZhitOJ0BRv2FG2NhL5MLqVsKPplnPTKNj 5p4saxoLwDPXTaX1gFl/yY44i8dHSyAcCGZecKtrzDtuBxK6xHjqgESa+GBeeFMFxKXJ nJpQ== 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=iRO8xtnmYKdtUJ9c/POE1IA+LM2yq72+9+Cu/TCPkuY=; b=M9o6GSFthafMi/e8Yq3hzL76FDafcVAPXoHmV0dwB0E34w2sYdxW2+yyNR95k8sGsF 0csP2JqH29MhAbsJqRkuCtMwxHUv7CytblMO8s/uhJ/3Ar9D2mKc0ze3hdgZ9puRL+kC 2qBc86NIhP+FI8WC2t5R2kbOJaXDZuuBPUFBhD/RBabKWBGQ3qurAWBmfUy2WnrcazQ6 Kgcktwh2GFlFqiez90jHAMvh34Ru63IK+36oA/BhbK9uOxrVz9G5uv/bQPu4h8N/g1QZ 3nlumF0+ioOOsErDk+cm+MVjctM3yI60u93lq8S+ZvpKJABy0DXfj3z5o2uyGo0RwiK/ N3gw== X-Gm-Message-State: APjAAAUGSfOVIDQdeZxUKDPS2VMUh6mWiyWrs8HHmBONx5gA5xtY9drD 0HKfFWaApiOA4lJGKXyxzpWRhh/qTMy2/w== X-Received: by 2002:a19:9149:: with SMTP id y9mr26009589lfj.15.1574780048644; Tue, 26 Nov 2019 06:54:08 -0800 (PST) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id d26sm6607954ljo.54.2019.11.26.06.54.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 06:54:07 -0800 (PST) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v3 0/3] Include destination address in MessageReceived API Date: Tue, 26 Nov 2019 15:53:58 +0100 Message-Id: <20191126145401.25129-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 changes the MessageReceived API, replacing 'subscription' flag with destination address of received messages. The application receives destination address as a D-Bus variant, containing either as a regular 16bit address (unicast/group) or a 16-octet virtual label. See previous discussion https://marc.info/?t=156719067300001&r=1&w=2 for rationale. v2: - fix API in test-join - display model subscriptions in test-join and test-mesh v3: - style fixes - when adding subscriptions, call UpdateModelConfiguration after subs are updated, not before MichaƂ Lowas-Rzechonek (3): mesh: Fix test-join to include mandatory VendorModels property mesh: Provide destination address in MessageReceived API mesh: Inform application about model subscriptions doc/mesh-api.txt | 32 +++++++++++--- mesh/model.c | 113 ++++++++++++++++++++++++++++++++++++++++++++--- test/test-join | 37 +++++++++++++--- test/test-mesh | 33 +++++++------- 4 files changed, 184 insertions(+), 31 deletions(-) -- 2.19.1