[Linux-zigbee-devel] [PATCH net 0/3][6lowpan] fixes for 6lowpan

2012-04-26 Thread Alexander Smirnov
The following patch set contains several fixes for the 6lowpan holes which lead to unpredictable module state. With best regards, Alex 8<-- The following changes since commit 872f24dbc604ef585ea7eec73020dcdfaffd1956: tipc: remove inline instances from C source files. (2012-04-24 00:41:03 -040

[Linux-zigbee-devel] [PATCH net 3/3] 6lowpan: add missing spin_lock_init()

2012-04-26 Thread Alexander Smirnov
Add missing spin_lock_init() for frames list lock. Signed-off-by: Alexander Smirnov --- net/ieee802154/6lowpan.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index a21ca6e..b570dbf 100644 --- a/net/ieee802154/6lowpa

[Linux-zigbee-devel] [PATCH net 2/3] 6lowpan: clean up fragments list if module unloaded

2012-04-26 Thread Alexander Smirnov
Clean all the pending fragments and relative timers if 6lowpan link is going to be deleted. Signed-off-by: Alexander Smirnov --- net/ieee802154/6lowpan.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c inde

[Linux-zigbee-devel] [PATCH net 1/3] 6lowpan: fix segmentation fault caused by mlme request

2012-04-26 Thread Alexander Smirnov
Add nescesary mlme callbacks to satisfy "iz list" request from user space. Due to 6lowpan device doesn't have its own phy, mlme implemented as a pipe to a real phy to which 6lowpan is attached. Signed-off-by: Alexander Smirnov --- net/ieee802154/6lowpan.c | 25 + 1 file

Re: [Linux-zigbee-devel] [PATCH net 0/3][6lowpan] fixes for 6lowpan

2012-04-26 Thread David Miller
From: Alexander Smirnov Date: Thu, 26 Apr 2012 13:24:55 +0400 > The following patch set contains several fixes for the 6lowpan holes which > lead > to unpredictable module state. All applied, thanks. -- Live Security V

[Linux-zigbee-devel] [PATCH net-next 0/2][6lowpan] code improvements and refactorings

2012-04-26 Thread Alexander Smirnov
The following patches contains 6lowpan code improvements. With best regards, Alex 8<-- The following changes since commit b89f01c8dab2b2d07729e1e6525272568bca54e0: 6lowpan: add missing spin_lock_init() (2012-04-26 11:35:28 +0400) are available in the git repository at: 6lowpan_dev ..BRANCH

[Linux-zigbee-devel] [PATCH net-next 1/2] 6lowpan: move frame allocation code to a separate function

2012-04-26 Thread Alexander Smirnov
Separate frame allocation routine from data processing function. This makes code more human readable and easier for understanding. Signed-off-by: Alexander Smirnov --- net/ieee802154/6lowpan.c | 81 +++--- 1 files changed, 48 insertions(+), 33 deletions(

[Linux-zigbee-devel] [PATCH net-next 2/2] 6lowpan: duplicate definition of IEEE802154_ALEN

2012-04-26 Thread Alexander Smirnov
The same macros is defined in 'include/net/af_ieee802154.h' and is called IEEE802154_ADDR_LEN. No need another one, so remove it. Signed-off-by: Alexander Smirnov --- net/ieee802154/6lowpan.c |4 ++-- net/ieee802154/6lowpan.h |3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff

Re: [Linux-zigbee-devel] [PATCH net-next 0/2][6lowpan] code improvements and refactorings

2012-04-26 Thread David Miller
From: Alexander Smirnov Date: Thu, 26 Apr 2012 13:35:49 +0400 > The following patches contains 6lowpan code improvements. Both applied, thanks. -- Live Security Virtual Conference Exclusive live event will cover all the

[Linux-zigbee-devel] Bug when setting the hop limit in 6lowpan.c

2012-04-26 Thread Tony Cheneau
Hello, I'm reading the 6lowpan.c file and I find the following code very odd. I believe a bug lies in it. I cannot test at the moment because the serial driver I plan on using does not work with the 6lowpan stack. In lowpan_header_create(), there is the following switch (around line 495): >

Re: [Linux-zigbee-devel] Bug when setting the hop limit in 6lowpan.c

2012-04-26 Thread Mariano Alvira
On Thu, Apr 26, 2012 at 11:46:23PM +0200, Tony Cheneau wrote: > Hello, > > In lowpan_header_create(), there is the following switch (around line > 495): > > switch (hdr->hop_limit) { > > case 1: > > iphc0 |= LOWPAN_IPHC_TTL_1; > > break; > > case 64: > >