From: Al Viro Date: Thu, 28 Sep 2006 01:43:07 +0000 (-0700) Subject: [IPV4]: INET_MATCH() annotations X-Git-Tag: v2.6.19-rc1~858^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f765d842fa6e6fe15d555b247b640118d65b4dd;p=pandora-kernel.git [IPV4]: INET_MATCH() annotations INET_MATCH() and friends depend on an interesting set of kludges: * there's a pair of adjacent fields in struct inet_sock - __be16 dport followed by __u16 num. We want to search by pair, so we combine the keys into a single 32bit value and compare with 32bit value read from &...->dport. * on 64bit targets we combine comparisons with pair of adjacent __be32 fields in the same way. Make sure that we don't mix those values with anything else and that pairs we form them from have correct types. Signed-off-by: Al Viro Signed-off-by: David S. Miller --- Reading git-diff-tree failed