Return-Path: From: "Gix, Brian" To: Robert Lubas CC: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ V2] Mesh: Fix TTL in Config Heartbeat Publication Set Date: Fri, 23 Mar 2018 12:37:17 +0000 Message-ID: <4AD7CCB7-A68D-4570-B575-34E8A32E5422@intel.com> References: <20180322104442.27650-1-robert.lubas@silvair.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: SGkgUm9iZXJ0LA0KDQo+IE9uIE1hciAyMywgMjAxOCwgYXQgODoyMCBBTSwgUm9iZXJ0IEx1YmFz IDxyb2JlcnQubHViYXNAc2lsdmFpci5jb20+IHdyb3RlOg0KPiANCj4gSGkgQnJpYW4sDQo+IA0K Pj4gT24gMDMvMjIvMjAxOCAxMDozMyBQTSwgR2l4LCBCcmlhbiB3cm90ZToNCj4+IEkgYW0gdW5h YmxlIHRvIGxvb2sgYXQgYWxsIHRoZSBjb2RlIGluIGNvbnRleHQgYXQgdGhlIG1vbWVudCwgYnV0 IHVzaW5nIHRoZSBERUZBVUxUX1RUTCAoMHhmZikgZm9yIGFueSBUVEwgdmFsdWUsIHdpbGwgYXV0 b21hdGljYWxseSBnZXQgcmVwbGFjZWQgd2l0aCB3aGF0ZXZlciB0aGUgZGVmYXVsdCBUVEwgaGFz IGJlZW4gc2V0IHRvLiBJdCBpcyBhIGhhbmR5IHZhbHVlIHdoaWNoIG1lYW5zIOKAnHVzZSB0aGUg c3lzdGVtIHNldHRpbmfigJ0gd2l0aG91dCBuZWVkaW5nIHRvIGxvb2sgaXQgdXAuDQo+Pj4gT24g TWFyIDIyLCAyMDE4LCBhdCAzOjQ1IEFNLCBSb2JlcnQgTHViYcWbIDxyb2JlcnQubHViYXNAc2ls dmFpci5jb20+IHdyb3RlOg0KPj4+IA0KPj4+IEluIE1lc2ggUHJvZmlsZSBzcGVjIDQuMi4xNy40 IEhlYXJ0YmVhdCBQdWJsaWNhdGlvbi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