Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2845876pxb; Fri, 12 Feb 2021 02:57:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQA7n27yK7Rx6r4pGl6sdUJ6Gcpf9JZ+JdMayNmsilYG2bcAtu1key3ApDDncTBneCUFqB X-Received: by 2002:aa7:ca13:: with SMTP id y19mr2698572eds.300.1613127475543; Fri, 12 Feb 2021 02:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613127475; cv=none; d=google.com; s=arc-20160816; b=s7NGdOJ+sgsLXLxLsHPT8Pp6LiS4Cubss9B1VU//C8L2j8HsiXmcXM5SDfUx6YNVoS X9Sbg5WGAvagHhER1uA8f4I78KIpy6hIISm+PGz3Xqgobc2GPbKDsbvFIVzSLg0viC9/ 7lYh+U2nf8QrwhF5l9ar0kmai1f+r9xzwYZOJ85slBg/B4nlZmc8P3UUN2gKVmnzwWLd 60ePE1z4OQ2O8CL6GxrVdWg2MCcX7Vx2/Ewn8h8PF6p+ORnssfjtwnbKAo42hepiy2LA Hjgo1xUX+P8pvITwm2QYRHGL1lBRv+albVFytIbw/OjEfnNLgO6l4c5mYdis7pTAVrtU oDkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:date:from:dkim-signature; bh=YHhSSO7Bfold1AOekyzb2HoIQujwCnUvaWEZgybZO4w=; b=xoh+Y5FhOBd8cwjGu+FvAdb6Ag8Nq8eS7hAJA6s9ddaqZfpDo7h2YtofbeuzWUkCfP masfwJJKlLLCqGGA7tvU/FbHWKXSZguPK+bE+cUo0IIU+Sas5oLoQavr3Fe6/3RkM188 TV9ALUHHxoJib01+AsDu4JpK+ycA+1JhxFHi1zx9ym0zOVMewFIu+hSl6posIniPa64x L8MP+B7PTpNGlYTXtZxuwHVdr6gAQGH6RanZRJoMQTtwGsoQ0l9Ti7UaCy+vN/+llQVH sXXGB/qXTni6oCUf6aDj3l1ffMBEaPjc0cL+hFUMECEcQ1HOVzqpbFbI/6jxfbc5/biy qU+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=EPFxRloi; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si5534141edd.250.2021.02.12.02.57.16; Fri, 12 Feb 2021 02:57:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=EPFxRloi; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbhBLKyz (ORCPT + 99 others); Fri, 12 Feb 2021 05:54:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbhBLKyy (ORCPT ); Fri, 12 Feb 2021 05:54:54 -0500 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C47EC0613D6 for ; Fri, 12 Feb 2021 02:54:14 -0800 (PST) Received: by mail-lj1-x236.google.com with SMTP id e17so11023776ljl.8 for ; Fri, 12 Feb 2021 02:54:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=YHhSSO7Bfold1AOekyzb2HoIQujwCnUvaWEZgybZO4w=; b=EPFxRloiAe+Uwh+Mo7qwVn4hMr/YJg/ULEdfaQMl/edQ6H8UDhZnPXRht82PfOhuvC x8g9Q2I+KOuc/1f6Xt5dy9m1UiL6XcFWo7qobZZ9vcUp4uGMJ1obApm8/v2zuzwRSPzn YjEhNTSD5V9NbpNGDF7KdKtIFAhRBCuhrDflujnRqGgTEcwesnpnrMYzlcuHGxXDzcQK 0drl1DUWZgsceQKhQzbpcpBBe46FcsjdAJpsrtO0nQlp6nl6WgzsJjGd/n38kP8MdBr8 WOV7mq18ewMzSq2sRn0o+Mb6L6Fpo9Z7NUjjEMUFgNvsBHk+gySgdhlP7WrWUgrrdK4V laOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=YHhSSO7Bfold1AOekyzb2HoIQujwCnUvaWEZgybZO4w=; b=G0OZZp5K8edaLnwpO+0cAxR53PVqi3149C3T9o5cIzxriDSx8slYH0/XEIDggii+GZ PKKE4L+7O6pZAtajs1oEmk3YB20VyGZiAMGExH57CykxYyFNAG8X5uLT9cf0fPloEqkY Fj3F7aJghIZImpz4zDfXkYWCklMVUG3E+ecag0Dxcyh/93h7KkJV4dp8C+E5TgHiI7dB MKkP2lz1r+MTFY5uE9WmDRxzt3ge/cCdIa+B2l1jtLmnasYaMdVWj8SFtDFwg8Z7ZdO7 Bd6kW7Bm63Xf6jlom2uT74Dg426kVPjpb0M1puUVQFfq5a5EN3c9Q21dISetADn8k3Ft VU0A== X-Gm-Message-State: AOAM530FaOx271TwNsUFbXj19AaJssc+2PGIg+IK36siwrljlX2yu1lK Uh6FBUAN6DMWPsvngMDv+UelYg== X-Received: by 2002:a2e:2c09:: with SMTP id s9mr1342785ljs.136.1613127252738; Fri, 12 Feb 2021 02:54:12 -0800 (PST) Received: from kynes (ip-222-98.ists.pl. [87.239.222.98]) by smtp.gmail.com with ESMTPSA id v24sm1298085ljg.27.2021.02.12.02.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 02:54:12 -0800 (PST) From: "=?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek" X-Google-Original-From: =?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek Date: Fri, 12 Feb 2021 11:54:10 +0100 To: Inga Stotland Cc: linux-bluetooth@vger.kernel.org, brian.gix@intel.com Subject: Re: [PATCH BlueZ 3/4] test/test-mesh: Generate correct value for Device UUID Message-ID: <20210212105410.rj4ctsih6blopw4d@kynes> Mail-Followup-To: Inga Stotland , linux-bluetooth@vger.kernel.org, brian.gix@intel.com References: <20210211222143.39986-1-inga.stotland@intel.com> <20210211222143.39986-4-inga.stotland@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210211222143.39986-4-inga.stotland@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 02/11, Inga Stotland wrote: > This ensures that the value of Device UUID when invoking > Join method is compliant with RFC 4122. > --- > test/test-mesh | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/test/test-mesh b/test/test-mesh > index 9e4783734..a478843a3 100755 > --- a/test/test-mesh > +++ b/test/test-mesh > @@ -889,6 +889,11 @@ class MainMenu(Menu): > > uuid = bytearray.fromhex("0a0102030405060708090A0B0C0D0E0F") > random.shuffle(uuid) > + uuid[6] &= 0x0f; > + uuid[6] |= 4 << 4; > + uuid[8] &= 0x3f; > + uuid[8] |= 0x80; > + https://docs.python.org/3/library/uuid.html > uuid_str = array_to_string(uuid) > > print(set_yellow('Joining with UUID ') + set_green(uuid_str)) > -- > 2.26.2 > -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND