Re: iked: fix ipv6 address pool assignment

2016-06-01 Thread Mike Belopuhov
On 1 June 2016 at 17:46, Patrick Wildt wrote: > On Wed, Jun 01, 2016 at 03:47:45PM +0200, Mike Belopuhov wrote: >> On 1 June 2016 at 13:33, Patrick Wildt wrote: >> > Hi, >> > >> > The IPv6 address assignment was basically copied from the IPv4 >> > code. Instead of working on the last 32-bits, it

Re: iked: fix ipv6 address pool assignment

2016-06-01 Thread Patrick Wildt
On Wed, Jun 01, 2016 at 03:47:45PM +0200, Mike Belopuhov wrote: > On 1 June 2016 at 13:33, Patrick Wildt wrote: > > Hi, > > > > The IPv6 address assignment was basically copied from the IPv4 > > code. Instead of working on the last 32-bits, it actually worked > > on the fourth byte. Thus it modi

Re: iked: fix ipv6 address pool assignment

2016-06-01 Thread Mike Belopuhov
On 1 June 2016 at 13:33, Patrick Wildt wrote: > Hi, > > The IPv6 address assignment was basically copied from the IPv4 > code. Instead of working on the last 32-bits, it actually worked > on the fourth byte. Thus it modified the network bits instead of > the host bits. > > This diff fixes the co

iked: fix ipv6 address pool assignment

2016-06-01 Thread Patrick Wildt
Hi, The IPv6 address assignment was basically copied from the IPv4 code. Instead of working on the last 32-bits, it actually worked on the fourth byte. Thus it modified the network bits instead of the host bits. This diff fixes the code so that we can have at least a 32-bit address pool space b