]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: fix udp byte ordering
authorAlexander Aring <alex.aring@gmail.com>
Tue, 17 Dec 2013 13:21:24 +0000 (14:21 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 17 Dec 2013 14:16:48 +0000 (06:16 -0800)
commitd1b80fad581ee2a89158e0b34f524b1c7b6c4aef
treea2e6d1b2f9bc1211f9397894860674892c752b93
parentebc130eb3bca65f1a329e4bbd1e1821e57b95700
6lowpan: fix udp byte ordering

The incoming udp header in lowpan_compress_udp_header function is
already in network byte order.

Everytime we read this values for source and destination port we need
to convert this value to host byte order.

In the outcoming header we need to set this value in network byte order
which the upcoming process assumes.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan_iphc.c