diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2014-12-31 19:56:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-01 00:25:54 +0100 |
commit | 98293e8d2f51976d5f790400859a517c0f7cb598 (patch) | |
tree | a2ed6ec3f6be7d4721808474c4a62b3c1c5b6771 /net/ipv4/fib_rules.c | |
parent | fib_trie: Update meaning of pos to represent unchecked bits (diff) | |
download | linux-98293e8d2f51976d5f790400859a517c0f7cb598.tar.xz linux-98293e8d2f51976d5f790400859a517c0f7cb598.zip |
fib_trie: Use unsigned long for anything dealing with a shift by bits
This change makes it so that anything that can be shifted by, or compared
to a value shifted by bits is updated to be an unsigned long. This is
mostly a precaution against an insanely huge address space that somehow
starts coming close to the 2^32 root node size which would require
something like 1.5 billion addresses.
I chose unsigned long instead of unsigned long long since I do not believe
it is possible to allocate a 32 bit tnode on a 32 bit system as the memory
consumed would be 16GB + 28B which exceeds the addressible space for any
one process.
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
0 files changed, 0 insertions, 0 deletions