Return-Path: From: "Duda, Lukasz" To: Alexander Aring CC: "linux-wpan@vger.kernel.org" , "linux-bluetooth@vger.kernel.org" , "netdev@vger.kernel.org" , "kernel@pengutronix.de" , "mcr@sandelman.ca" , "martin.gergeleit@hs-rm.de" Subject: RE: [RFCv4 bluetooth-next 1/2] 6lowpan: iphc: add support for stateful compression Date: Thu, 17 Dec 2015 12:26:37 +0000 Message-ID: References: <1450101654-22633-1-git-send-email-alex.aring@gmail.com> <1450101654-22633-2-git-send-email-alex.aring@gmail.com> <20151215110835.GA3774@omega> In-Reply-To: <20151215110835.GA3774@omega> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wpan-owner@vger.kernel.org List-ID: SGkgQWxleCENCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBbGV4YW5k ZXIgQXJpbmcgW21haWx0bzphbGV4LmFyaW5nQGdtYWlsLmNvbV0NCj4gU2VudDogVHVlc2RheSwg RGVjZW1iZXIgMTUsIDIwMTUgMTI6MDkNCj4gVG86IER1ZGEsIEx1a2Fzeg0KPiBDYzogbGludXgt d3BhbkB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtlcm5lbC5vcmc7DQo+ IG5ldGRldkB2Z2VyLmtlcm5lbC5vcmc7IGtlcm5lbEBwZW5ndXRyb25peC5kZTsgbWNyQHNhbmRl bG1hbi5jYTsNCj4gbWFydGluLmdlcmdlbGVpdEBocy1ybS5kZQ0KPiBTdWJqZWN0OiBSZTogW1JG Q3Y0IGJsdWV0b290aC1uZXh0IDEvMl0gNmxvd3BhbjogaXBoYzogYWRkIHN1cHBvcnQgZm9yDQo+ IHN0YXRlZnVsIGNvbXByZXNzaW9uDQo+IA0KPiBPbiBUdWUsIERlYyAxNSwgMjAxNSBhdCAxMDoy OTo1MUFNICswMDAwLCBEdWRhLCBMdWthc3ogd3JvdGU6DQo+ID4gRmlyc3Qgb2YgYWxsI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