[Linux-zigbee-devel] [PATCH net-next v5 1/8] 6lowpan: add frag information struct

2014-02-27 Thread Alexander Aring
This patch adds a 6lowpan fragmentation struct into cb of skb which is necessary to hold fragmentation information. Signed-off-by: Alexander Aring --- include/net/ieee802154_netdev.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee8021

[Linux-zigbee-devel] [PATCH net-next v5 5/8] 6lowpan: move 6lowpan.c to 6lowpan_rtnl.c

2014-02-27 Thread Alexander Aring
We have a 6lowpan.c file and 6lowpan.ko file. To avoid confusing we should move 6lowpan.c to 6lowpan_rtnl.c. Then we can support multiple source files for 6lowpan module. Signed-off-by: Alexander Aring --- net/ieee802154/{6lowpan.c => 6lowpan_rtnl.c} | 0 net/ieee802154/Makefile

[Linux-zigbee-devel] [PATCH net-next v5 3/8] 6lowpan: fix fragmentation on sending side

2014-02-27 Thread Alexander Aring
This patch fix the fragmentation on sending side according to rfc4944. Also add improvement to use the full payload of a PDU which calculate the nearest divided to 8 payload length for the fragmentation datagram size attribute. The main issue is that the datagram size of fragmentation header use

[Linux-zigbee-devel] [PATCH net-next v5 2/8] 6lowpan: add uncompress header size function

2014-02-27 Thread Alexander Aring
Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.h | 113 +++ 1 file changed, 113 insertions(+) diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/6lowpan.h index 2b835db..0dccf62 100644 --- a/net/ieee802154/6lowpan.h +++ b/net/ieee802154/

[Linux-zigbee-devel] [PATCH net-next v5 7/8] net: ns: add ieee802154_6lowpan namespace

2014-02-27 Thread Alexander Aring
This patch adds necessary ieee802154 6lowpan namespace to provide the inet_frag information. This is a initial support for handling 6lowpan fragmentation with the inet_frag api. Signed-off-by: Alexander Aring --- include/net/net_namespace.h| 4 include/net/netns/ieee802154_6low

[Linux-zigbee-devel] [PATCH net-next v5 4/8] 6lowpan: change tag type to __be16

2014-02-27 Thread Alexander Aring
Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 872c8f9..6b7d17f 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -68,7 +68,7 @@ st

[Linux-zigbee-devel] [PATCH net-next v5 6/8] 6lowpan: fix some checkpatch issues

2014-02-27 Thread Alexander Aring
Detected with: ./scripts/checkpatch.pl --strict -f net/ieee802154/6lowpan_rtnl.c Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan_rtnl.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowp

[Linux-zigbee-devel] [PATCH net-next v5 0/8] 6lowpan: reimplementation of fragmentation handling

2014-02-27 Thread Alexander Aring
Hi, this patch series reimplementation the fragmentation handling of 6lowpan accroding to rfc4944 [1]. The first big note is, that the current fragmentation behaviour isn't rfc complaint. The main issue is a wrong datagram_size value which needs to be: datagram_size = ipv6_payload + ipv6 header +

[Linux-zigbee-devel] [PATCH net-next v5 8/8] 6lowpan: handling 6lowpan fragmentation via inet_frag api

2014-02-27 Thread Alexander Aring
This patch drops the current way of 6lowpan fragmentation on receiving side and replace it with a implementation which use the inet_frag api. The old fragmentation handling has some race conditions and isn't rfc4944 compatible. Also adding support to match fragments on destination and source addres

Re: [Linux-zigbee-devel] [PATCH net-next v5 8/8] 6lowpan: handling 6lowpan fragmentation via inet_frag api

2014-02-27 Thread Alexander Aring
Hi David, On Thu, Feb 27, 2014 at 03:56:39PM -0500, David Miller wrote: > From: Alexander Aring > Date: Thu, 27 Feb 2014 09:06:22 +0100 > > > +static int lowpan_frag_queue(struct lowpan_frag_queue *fq, > > +struct sk_buff *skb, const u8 frag_type, > > +

[Linux-zigbee-devel] [PATCH net-next v6 4/8] 6lowpan: change tag type to __be16

2014-02-27 Thread Alexander Aring
Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 872c8f9..6b7d17f 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -68,7 +68,7 @@ st

[Linux-zigbee-devel] [PATCH net-next v6 2/8] 6lowpan: add uncompress header size function

2014-02-27 Thread Alexander Aring
This patch add a lookup function for uncompressed 6LoWPAN header size. This is needed to estimate the real size after uncompress the 6LoWPAN header. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.h | 113 +++ 1 file changed, 113 insertions(+

[Linux-zigbee-devel] [PATCH net-next v6 0/8] 6lowpan: reimplementation of fragmentation handling

2014-02-27 Thread Alexander Aring
Hi, this patch series reimplementation the fragmentation handling of 6lowpan accroding to rfc4944 [1]. The first big note is, that the current fragmentation behaviour isn't rfc complaint. The main issue is a wrong datagram_size value which needs to be: datagram_size = ipv6_payload + ipv6 header +

[Linux-zigbee-devel] [PATCH net-next v6 7/8] net: ns: add ieee802154_6lowpan namespace

2014-02-27 Thread Alexander Aring
This patch adds necessary ieee802154 6lowpan namespace to provide the inet_frag information. This is a initial support for handling 6lowpan fragmentation with the inet_frag api. Signed-off-by: Alexander Aring --- include/net/net_namespace.h| 4 include/net/netns/ieee802154_6low

[Linux-zigbee-devel] [PATCH net-next v6 6/8] 6lowpan: fix some checkpatch issues

2014-02-27 Thread Alexander Aring
Detected with: ./scripts/checkpatch.pl --strict -f net/ieee802154/6lowpan_rtnl.c Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan_rtnl.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowp

[Linux-zigbee-devel] [PATCH net-next v6 8/8] 6lowpan: handling 6lowpan fragmentation via inet_frag api

2014-02-27 Thread Alexander Aring
This patch drops the current way of 6lowpan fragmentation on receiving side and replace it with a implementation which use the inet_frag api. The old fragmentation handling has some race conditions and isn't rfc4944 compatible. Also adding support to match fragments on destination address, source a

[Linux-zigbee-devel] [PATCH net-next v6 1/8] 6lowpan: add frag information struct

2014-02-27 Thread Alexander Aring
This patch adds a 6lowpan fragmentation struct into cb of skb which is necessary to hold fragmentation information. Signed-off-by: Alexander Aring --- include/net/ieee802154_netdev.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee8021

[Linux-zigbee-devel] [PATCH net-next v6 5/8] 6lowpan: move 6lowpan.c to 6lowpan_rtnl.c

2014-02-27 Thread Alexander Aring
We have a 6lowpan.c file and 6lowpan.ko file. To avoid confusing we should move 6lowpan.c to 6lowpan_rtnl.c. Then we can support multiple source files for 6lowpan module. Signed-off-by: Alexander Aring --- net/ieee802154/{6lowpan.c => 6lowpan_rtnl.c} | 0 net/ieee802154/Makefile

[Linux-zigbee-devel] [PATCH net-next v6 3/8] 6lowpan: fix fragmentation on sending side

2014-02-27 Thread Alexander Aring
This patch fix the fragmentation on sending side according to rfc4944. Also add improvement to use the full payload of a PDU which calculate the nearest divided to 8 payload length for the fragmentation datagram size attribute. The main issue is that the datagram size of fragmentation header use