[Linux-zigbee-devel] [PATCH 3/3] net/ieee802154: 6lowpan.c: This patch fixes destination address uncompression to send the MAC address to lowpan_uncompress_addr

2013-04-11 Thread Ralph Droms
Stateless compression mode 3 needs the MAC address from the MAC header. This patch fixes the call to lowpan_uncompress_addr to correctly pass the MAC address. Signed-off-by: Ralph Droms --- net/ieee802154/6lowpan.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/iee

[Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Ralph Droms
These patches fix link-local address uncompression, for both source and destination addresses. - Ralph Ralph Droms (3): net/ieee802154: 6lowpan.c: Fixes for stateless address decompression to use MAC address net/ieee802154: 6lowpan.c: This patch fixes source address uncompression to

[Linux-zigbee-devel] [PATCH 2/3] net/ieee802154: 6lowpan.c: This patch fixes source address uncompression to send the MAC address to lowpan_uncompress_addr

2013-04-11 Thread Ralph Droms
Stateless compression mode 3 needs the MAC address from the MAC header. This patch fixes the call to lowpan_uncompress_addr to correctly pass the MAC address. Signed-off-by: Ralph Droms --- net/ieee802154/6lowpan.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/

[Linux-zigbee-devel] [PATCH 1/3] net/ieee802154: 6lowpan.c: Fixes for stateless address decompression to use MAC address

2013-04-11 Thread Ralph Droms
Stateless decompression mode 3 combines the MAC address from the MAC header with link-local prefix FE80::/64 to reconstruct the original IPv6 address. This patch corrects comments, variable llconf and lowpan_uncompress_addr to be compatible with RFC 4644. Signed-off-by: Ralph Droms --- net/ieee8

Re: [Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Tony Cheneau
Hi Ralph, First, thank you for your patches. I've tested them yesterday. Because I didn't had enough hardware to perform a proper packet capture, so I just checked the connectivity. I could run all my regression tests (ICMP, TCP, UDP, varying packet length) between two linux hosts with your pa

Re: [Linux-zigbee-devel] [PATCH 1/3] net/ieee802154: 6lowpan.c: Fixes for stateless address decompression to use MAC address

2013-04-11 Thread Tony Cheneau
Hi Ralph, Just a quick comment. Le 2013-04-11 13:51, Ralph Droms a écrit : > Stateless decompression mode 3 combines the MAC address from the MAC > header > with link-local prefix FE80::/64 to reconstruct the original IPv6 > address. > This patch corrects comments, variable llconf and > lowpan

Re: [Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Christophe Aeschlimann
Hi Tony, Le 11.04.2013 15:57, Tony Cheneau a écrit : > Hi Ralph, > > First, thank you for your patches. I've tested them yesterday. Because > I didn't had enough hardware to perform a proper packet capture, so I > just checked the connectivity. > > I could run all my regression tests (ICMP, TC

Re: [Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Christophe Aeschlimann
Hi Ralph, Le 11.04.2013 13:51, Ralph Droms a écrit : > > These patches fix link-local address uncompression, for both source > and destination addresses. > > - Ralph > > Ralph Droms (3): > net/ieee802154: 6lowpan.c: Fixes for stateless address decompression > to use MAC address > net/ie

Re: [Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Tony Cheneau
Hi Christophe, I assigned the fe80::/64 addresses manually because I need to know them for the script. Because they are derived from the MAC address, it could have happened that I don't know them at the time I run the script. However, you're right: in my specific setup, I have the control over

Re: [Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Christophe Aeschlimann
Le 11.04.2013 16:43, Tony Cheneau a écrit : > Hi Christophe, > > I assigned the fe80::/64 addresses manually because I need to know them > for the script. Because they are derived from the MAC address, it could > have happened that I don't know them at the time I run the script. > However, you're

Re: [Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Ralph Droms (rdroms)
On Apr 11, 2013, at 11:20 AM 4/11/13, Christophe Aeschlimann wrote: > Le 11.04.2013 16:43, Tony Cheneau a écrit : >> Hi Christophe, >> >> I assigned the fe80::/64 addresses manually because I need to know them >> for the script. Because they are derived from the MAC address, it could >> have

Re: [Linux-zigbee-devel] [PATCH 0/3] Patches to 6lowpan.c to fix link-local address uncompression

2013-04-11 Thread Tony Cheneau
Hi, Replying to myself. Christophe's email made me realize that I use additional Link-Local addresses that are not obtained through SLAAC. This means that my test between the two Linux hosts are completely useless (as it might have not made any use of your new code). I'll perform some addition

Re: [Linux-zigbee-devel] [PATCH 1/3] net/ieee802154: 6lowpan.c: Fixes for stateless address decompression to use MAC address

2013-04-11 Thread Tony Cheneau
Hi again, Just nitpicking here: Le 2013-04-11 13:51, Ralph Droms a écrit : > Stateless decompression mode 3 combines the MAC address from the MAC > header > with link-local prefix FE80::/64 to reconstruct the original IPv6 > address. > This patch corrects comments, variable llconf and > lowpan

[Linux-zigbee-devel] [PATCH 0/2 v2] changed irq handling for at86rf230

2013-04-11 Thread Sascha Herrmann
Hi, Based on the feedback to the previous patch set, this patch set makes the irq handling configurable. The first patch add the option to configure the irq type of the plattform and the device. The second patch changes the irq handling when edge type interrupts are configured. Without irq config

[Linux-zigbee-devel] [PATCH 1/2 v2] at86rf230: add irq type configuration option

2013-04-11 Thread Sascha Herrmann
Add option to at86rf230 platform data to configure the type of the interrupt used by the driver. The irq polarity of the device will be configured accordingly. Signed-off-by: Sascha Herrmann --- drivers/net/ieee802154/at86rf230.c | 44 include/linux/spi/at8

[Linux-zigbee-devel] [PATCH 2/2 v2] at86rf230: change irq handling to prevent lockups with edge type irq

2013-04-11 Thread Sascha Herrmann
Implemented separate irq handling for edge and level type interrupt configuration. For edge type interrupts calls to disable_irq_nosync() and enable_irq() are removed. The at86rf230 resets the irq line only after the irq status register is read. Disabling the irq can lock the driver in situations w