summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_rules.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-16 23:56:22 +0100
committerDavid S. Miller <davem@davemloft.net>2011-02-18 00:49:26 +0100
commit3b004569d86d02786ebae496e75dc0b625be3e9a (patch)
treec345e28b1478ee37755b6d5d061a586308fe033c /net/ipv4/fib_rules.c
parentnet: Add initial_ref arg to dst_alloc(). (diff)
downloadlinux-3b004569d86d02786ebae496e75dc0b625be3e9a.tar.xz
linux-3b004569d86d02786ebae496e75dc0b625be3e9a.zip
ipv4: Avoid use of signed integers in fib_trie code.
GCC emits all kinds of crazy zero extensions when we go from signed int, to unsigned short, etc. etc. This transformation has to be legal because: 1) In tkey_extract_bits() in mask_pfx(), the values are used to perform shifts, on which negative values are undefined by C. 2) In fib_table_lookup() we perform comparisons with unsigned values, constants, and additions. None of which should encounter negative values. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
0 files changed, 0 insertions, 0 deletions