On 10/23/2012 06:09 AM, Tony Cheneau wrote:
> The previous code would just compress the UDP header and send the compressed
> UDP header along with the uncompressed one.
>
> Signed-off-by: Tony Cheneau <[email protected]>
> ---
> net/ieee802154/6lowpan.c | 36 +++++++++++++++++++++++++++++++++---
> 1 files changed, 33 insertions(+), 3 deletions(-)
>
> diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
> index 9711038..9c7ac2e 100644
> --- a/net/ieee802154/6lowpan.c
> +++ b/net/ieee802154/6lowpan.c
(...)
> /* copy checksum */
> memcpy(&uh->check, &skb->data[0], 2);
> skb_pull(skb, 2);
> +
> + /* UDP lenght needs to be infered from the lower layers
> + here, we obtain the hint from the remaining size of the
> + frame */
> + uh->len = htons(skb->len + sizeof(struct udphdr));
> + pr_debug("uncompressed UDP length: src = %d", uh->len);
Multi-line comment style as per earlier comment.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Linux-zigbee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel