From: Tony Cheneau Date: Mon, 25 Mar 2013 17:59:22 +0000 (+0000) Subject: 6lowpan: next header is not properly set upon decompression of a UDP header. X-Git-Tag: MMI-PSA29.97-13-9~14469^2~336^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5c20f58d950002a4a5a77f60484a51e5af6498c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 6lowpan: next header is not properly set upon decompression of a UDP header. This causes a drop of the UDP packet. Signed-off-by: Tony Cheneau Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 43b95ca61114..9f53904b5261 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -918,9 +918,11 @@ lowpan_process_data(struct sk_buff *skb) } /* UDP data uncompression */ - if (iphc0 & LOWPAN_IPHC_NH_C) + if (iphc0 & LOWPAN_IPHC_NH_C) { if (lowpan_uncompress_udp_header(skb)) goto drop; + hdr.nexthdr = UIP_PROTO_UDP; + } /* Not fragmented package */ hdr.payload_len = htons(skb->len);