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

2012-04-27 Thread Tony Cheneau
Hi, Here is the patch. I am not too familiar with git, so I do not know if the patch is formatted correctly or not, if not, you can produce your own patch and cc me. The patch was created against the latest version of the net-next (82981930125abfd39d7c8378a9cfdf5e1be2002b at the moment I write

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

2012-04-27 Thread Alexander Smirnov
Hi Tony, 27 апреля 2012 г. 1:46 пользователь 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

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: > >

[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): >