Re: [IPSEC]: Avoid undefined shift operation when testing algorithm ID

2007-12-19 Thread Jarek Poplawski
On 20-12-2007 05:29, Herbert Xu wrote: > Hi Dave: > > I had wanted to fix this for ages but kept putting it off and then > forgetting about it :) So before I forget again, > > [IPSEC]: Avoid undefined shift operation when testing algorithm ID > > The aalgos/ealgos fiel

Re: [IPSEC]: Avoid undefined shift operation when testing algorithm ID

2007-12-19 Thread David Miller
From: Herbert Xu <[EMAIL PROTECTED]> Date: Thu, 20 Dec 2007 12:29:37 +0800 > [IPSEC]: Avoid undefined shift operation when testing algorithm ID > > The aalgos/ealgos fields are only 32 bits wide. However, af_key tries > to test them with the expression 1 << id where id

[IPSEC]: Avoid undefined shift operation when testing algorithm ID

2007-12-19 Thread Herbert Xu
Hi Dave: I had wanted to fix this for ages but kept putting it off and then forgetting about it :) So before I forget again, [IPSEC]: Avoid undefined shift operation when testing algorithm ID The aalgos/ealgos fields are only 32 bits wide. However, af_key tries to test them with the expression