This will add support to skip bytes from skb with the lowpan_fetch_skb
function.
This is necessary for upcomming patches.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index 1743478..1dd690a 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -1078,7 +1078,7
The current fragmentation implementation isn't rfc4944 compatible so a ping
with a
payload of > 127 with other 6lowpan implementations like contiki isn't possible.
This patch fixes the fragmentation implementation to rfc4944 so fragmentation
with
ping comes possible,
Also fix some race conditio
This patch indentation fixes are necessary for the upcomming patches.
It removes some whitespace issues which checkpatch pointed out.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/net/ieee802154/6lowpa
If the timer expire on fragmentation handling we need to hold the
flist_lock spinlock while accessing fraglist.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index 0da513b..10c
This is necessary for upcomming patches to calculate the 6lowpan header.
It's a little bit tricky here because a UDP transport header can be
compressed in the network header, so the UDP header is merged in the
6lowpan header. In this case the transport header points to the payload
of the UDP header
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index c458ac2..6547efc 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -1137,7 +1137,7 @@ low
This patch drops the directly memcpy on skb and uses the right skb
memcpy functions. Also remove an unnecessary check if plen is non zero.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 13 -
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/net/ieee802154/
Since we drop the skb copies, we don't need this function.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 22 --
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index 42deee6..711f905 100644
---
This patch removes the assign of skb->dev. We don't need it here because
we use a netdev_alloc_skb... function.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index 711f905..448cc7
The current implementation does many copies of the sk_buff for
increasing headroom which are not necessary.
This patch increases the headroom in the maclayer for a worst case
scenario of (sizeof(struct ipv6hdr) + sizeof(struct udphdr)).
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.
This is a race condition fix if the timer expire occurs when the last
frame is arrived otherwise we cleanup the list entry twice.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/net/ieee802154/6lowpan.c b/net/iee
This patch fixes the fragmentation of receiving 6lowpan packets.
The current fragmentation isn't rfc4944 compatible.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 268 +++
1 file changed, 154 insertions(+), 114 deletions(-)
diff --git
Currently we match fragmentation frames only on his tagid. This patch
adds support to match also on source and destination address.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 13 -
net/ieee802154/6lowpan.h | 28
2 files changed, 40 inse
On receiving side we don't need to set any headers in skb. The deliver
function delivers the skb to ipv6 handler and the ipv6 handler will set
these headers.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 4
1 file changed, 4 deletions(-)
diff --git a/net/ieee802154/6lowpan.
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
offset attribute.
Signed-off-by: Alexander Aring
---
include/net/ieee802154_netdev.
Set the mac header length while creating the 802.15.4 mac header.
Drop the function for recalculate mac header length in upper layers
which was static and works for intra pan communication only.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 13 +
net/mac802154/wpan.c
This patch uses the netdev_alloc_skb instead dev_alloc_skb function.
Also dropping the assign to skb->dev to netdev.
Signed-off-by: Alexander Aring
---
net/ieee802154/6lowpan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowp
On Sun, Oct 13, 2013 at 03:46:47PM +0200, Alexander Aring wrote:
> This patch fixes the fragmentation of receiving 6lowpan packets.
> The current fragmentation isn't rfc4944 compatible.
>
> Signed-off-by: Alexander Aring
> ---
> net/ieee802154/6lowpan.c | 268
> +++--
19 matches
Mail list logo