Commit 980edbd5 authored by Simon Vincent's avatar Simon Vincent Committed by Marcel Holtmann
Browse files

6lowpan: fix udp header compression when using raw sockets



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: default avatarSimon Vincent <simon.vincent@xsilon.com>
Acked-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 2a68c897
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment