Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2473099ybl; Thu, 9 Jan 2020 13:24:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwZwafy1iKxOdm9ifZbbCq3Qa2IpHzErzkh7WyBGlutPjqF5JNrth49/py6diLMsHWiXxz8 X-Received: by 2002:aca:d4c1:: with SMTP id l184mr5042172oig.172.1578605050636; Thu, 09 Jan 2020 13:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578605050; cv=none; d=google.com; s=arc-20160816; b=QTKdEZPR6kTOsausn0SYEdA8+pi5BDCf333AMUuP1RvBjP46CUyohUYEI7il7MLpkn Jq8v6kRMiM0d6ZwFtZ0kKb8oUR/5ZtQ52NTrwC3kGXC2RQCoLnkyZKJYqPpZGujcyKNs wxfmAY0PTuEa5dlorXUcxYf546ASRK0tbKAZw7Wz9pWdbz83d9pdoqtaftNS9P/TT7Ex NTK0t4PxclN0T0WVzAOjBGUt0jrYkyA6MOxDNLykdWwnEV5uBWhDWv0SA0CvgxByUOlN Vj6c+XW3NMtEssUpE/w3sOD/eRu25pWIgmfk8KrPBjZni8pi52Nf+H+O+irAw/OoH2nZ Jx5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ensXTgk6MfNfAgdu/P0DwJYw5+4kLAxUQGVLoTwPuTw=; b=WyrZ4PZaHsfa7J4gOW8ususHVbUtffavl43MBUm92nm5n4tH243FgZWV6d+DtH8HQB NIen70GCnBS2aYrHWq+KGZ5dlI2hEfJmO5j95RzAQsFQyV4GUF4OUbRTzdnKhKb4jDpF YIr6wvpxri3CAv7ZOiBgisL+ZH6GeeVWTOqGC1Zi7ZdVPoPCdb82x/84Ibc1z+7n1XtO f7S1jBH5YEhTkpL/yJZDeRsjrmBP5kOKA+TuJIM37EjXetXFP+mqXzcQgr8P1mcdiaBf N6CSvjBfCukpVuWwYXwGo1hsSJ+2lSBQAxvsL1yDwwJpNH7ewaRbH24Za51/IxjV2ziB r+xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="S0/DNfHW"; 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 b2si4259859oic.205.2020.01.09.13.23.51; Thu, 09 Jan 2020 13:24:10 -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="S0/DNfHW"; 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 S1725763AbgAIVX1 (ORCPT + 99 others); Thu, 9 Jan 2020 16:23:27 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39675 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgAIVX1 (ORCPT ); Thu, 9 Jan 2020 16:23:27 -0500 Received: by mail-lj1-f195.google.com with SMTP id l2so8789951lja.6 for ; Thu, 09 Jan 2020 13:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ensXTgk6MfNfAgdu/P0DwJYw5+4kLAxUQGVLoTwPuTw=; b=S0/DNfHW7VbRV5mGnn9DVnN2Mt46dddZaWhK4vGDFnQ8UI0YHZNwVLYKr55Ccwf8kB R/GwBDgtSXjydts3F7uVW2uTAcNSPgU/D1qJr7LNG9Y6nhE5aW25DXGcYYx06Ztu8byA D0UOL6f9aSf2aIG0765Va6V0CIFVBwBIDdEggVQszk9MdpNJ6SfH5Gcpxcx1dF0zTHvk zq4zvVQewBQv3TushF9FMeRaHZzuNcKrGVY0o45lHWvtGmSz+55eZJbR2y1xB3DwhH19 5MsRf+wP4RlaPA03iWBb7PmbeQ2IyqQLFqKy/re6PppIN/UZtn+aPALcJgeRqgheR9yx MQ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ensXTgk6MfNfAgdu/P0DwJYw5+4kLAxUQGVLoTwPuTw=; b=sWMOyfksqHjDlhUX0LQUEBXc7JOqERq2ss0Z+eGPeqA5iufFZ3dAONKXjzbInakYQg xI5ODEJDAQom5h9VXwFAcchviGhJnFCcgloU4QA/CyVkDSBsSviUBcrVEnWfey8nrQyk Zt0XTjdUnSFtr74jA5JSCzD6lYvZnVE4/OWpcDxvYh57NJl7BqcEKWcawaBtB3h74Q++ sObypj3wZoDPaNcsZQtQiqBwDrAAy3Mt4xu0W0ji0mU0kljO8WS7QgVKy9K6q2ZY03NY yGd6cxgtlZCLB41HURpQv/A2UAJssYu+vbwZvQ0eDBL6hFHR99I+XDhV++zmtyM2/A6I Hseg== X-Gm-Message-State: APjAAAWGcrisuJI29ISVlkrnduzjK+oexIKSxhBFs01DBuDebx2VA8xP taH6YXe8mRq8UqXrsC4uQGOPlkpQYvI= X-Received: by 2002:a2e:9e19:: with SMTP id e25mr38315ljk.179.1578605005369; Thu, 09 Jan 2020 13:23:25 -0800 (PST) Received: from kynes (apn-37-7-124-67.dynamic.gprs.plus.pl. [37.7.124.67]) by smtp.gmail.com with ESMTPSA id g15sm3605778ljl.10.2020.01.09.13.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 13:23:24 -0800 (PST) Date: Thu, 9 Jan 2020 22:23:23 +0100 From: "michal.lowas-rzechonek@silvair.com" To: "Stotland, Inga" Cc: "Gix, Brian" , "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ] mesh: Correctly generate NetKey list Message-ID: <20200109212323.vq5pvnp5snelbumo@kynes> Mail-Followup-To: "Stotland, Inga" , "Gix, Brian" , "linux-bluetooth@vger.kernel.org" References: <20200109175715.22925-1-inga.stotland@intel.com> <20200109210837.yraajvc76g4xv5oh@kynes> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Inga, On 01/09, Stotland, Inga wrote: >> Another thing: doesn't this duplicate the same logic implemented in >> appkey.c function appkey_list? > > No, it's a different list organization. So I cannot re-use the code. I understand that the list we iterate over is different, but in the end the index list serialization format is exactly the same. -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND