lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
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