[Linux-zigbee-devel] [PATCH 0/6] 6lowpan: uncompress of addresses fix

2013-08-13 Thread Alexander Aring
The current implementation to uncompress addresses in a 6lowpan header is completely broken. This patch series fixes the parsing of addresses in a 6lowpan header. It contains a major rewrite of the uncompress address function to parse the address in a correct way. Alexander Aring (5): 6lowpan:

[Linux-zigbee-devel] [PATCH 3/6] 6lowpan: introduce lowpan_fetch_skb function

2013-08-13 Thread Alexander Aring
This patch adds a helper function to parse the ipv6 header to a 6lowpan header in stream. This function checks first if we can pull data with a specific length from a skb. If this seems to be okay, we copy skb data to a destination pointer and run skb_pull. Signed-off-by: Alexander Aring --- ne

[Linux-zigbee-devel] [PATCH 2/6] 6lowpan: Fix fragmentation with link-local compressed addresses

2013-08-13 Thread Alexander Aring
From: David Hauweele When a new 6lowpan fragment is received, a skbuff is allocated for the reassembled packet. However when a 6lowpan packet compresses link-local addresses based on link-layer addresses, the processing function relies on the skb mac control block to find the related link-layer a

[Linux-zigbee-devel] [PATCH] 6lowpan: handle only real link-local addresses

2013-08-13 Thread Alexander Aring
A link-local address isn't fe80::/10 it's fe80::/64 see http://tools.ietf.org/html/rfc4291#section-2.5.6 for more details. Also fix a comment issue "local link" -> "link-local" Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(

[Linux-zigbee-devel] [PATCH 4/6] 6lowpan: add function to uncompress multicast addr

2013-08-13 Thread Alexander Aring
Add function to uncompress multicast address. This function split the uncompress function for a multicast address in a seperate function. To uncompress a multicast address is different than a other non-multicasts addresses according to rfc6282. Signed-off-by: Alexander Aring --- net/ieee802154/

[Linux-zigbee-devel] [PATCH 1/6] 6lowpan: init ipv6hdr buffer to zero

2013-08-13 Thread Alexander Aring
This patch simplify the handling to set fields inside of struct ipv6hdr to zero. Instead of setting some memory regions with memset to zero we initialize the whole ipv6hdr to zero. This is a optimization for parsing the 6lowpan header and not a bug fix. Signed-off-by: Alexander Aring --- net/ie

[Linux-zigbee-devel] [PATCH 5/6] 6lowpan: lowpan_uncompress_addr with address_mode

2013-08-13 Thread Alexander Aring
This patch drop the pre and postcount calculation from the lowpan_uncompress_addr function. We use instead a switch case over address_mode value, it's easier to understand what's going on there. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 144 +-

Re: [Linux-zigbee-devel] [PATCH] 6lowpan: handle only real link-local addresses

2013-08-13 Thread David Miller
You're submitting 7 patches, one set is numbered 1-6 and this one has no number. What in the world do you want me to do with these patches? What tree are they targetted at? Are there dependencies? What order should I apply them in? You've given me none of this information, therefore I am toss