From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f176.google.com ([209.85.217.176]:53753 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753255AbaKDPtD (ORCPT ); Tue, 4 Nov 2014 10:49:03 -0500 Date: Tue, 4 Nov 2014 16:48:59 +0100 From: Alexander Aring Subject: Re: [PATCHv3 bluetooth-next] 6lowpan: fix udp header compression when using raw sockets Message-ID: <20141104154855.GB30647@omega> References: <1415114991-3687-1-git-send-email-simon.vincent@xsilon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1415114991-3687-1-git-send-email-simon.vincent@xsilon.com> Sender: linux-wpan-owner@vger.kernel.org List-ID: To: Simon Vincent Cc: linux-wpan@vger.kernel.org, linux-bluetooth@vger.kernel.org On Tue, Nov 04, 2014 at 03:29:51PM +0000, Simon Vincent wrote: > If you use RAW sockets the transport header offset is not set by the > ipv6 stack so when we get to the udp header compression it does not > compress the right part of the packet. > > This patch adds a check for this scenario and sets the transport > header offset. > > Signed-off-by: Simon Vincent Acked-by: Alexander Aring