[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CA+NCTVodoJFT2C=QXM873PoTVvUWZ10GzGrkGhDKqSUzi3rt+Q@mail.gmail.com>
Date: Mon, 2 Sep 2013 11:46:53 +0800
From: ke wang <hacklinux66@...il.com>
To: netdev@...r.kernel.org
Cc: hacklinux66@...il.com
Subject: confusion about tkey_extract_bits, please help.
hi:
i had a question about ipv6 routing in 2.6.39. what the algorithm of
the function tkey_extract_bits. can anyone give me some advice on it,
thank u indeed .
static inline t_key tkey_extract_bits(t_key a, unsigned int offset,
unsigned int bits)
{
if (offset < KEYLENGTH)
return ((t_key)(a << offset)) >> (KEYLENGTH - bits);
else
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists