diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2014-03-30 18:28:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-31 16:33:38 -0400 |
commit | 6dfac5c33620de7f5ecd9dd07e2e2bb6549c4d55 (patch) | |
tree | c3c3fd552b53f016c85aebdf035a83d4f06f582d /net/mac80211/mesh_ps.c | |
parent | a50e233c50dbc881abaa0e4070789064e8d12d70 (diff) | |
download | linux-6dfac5c33620de7f5ecd9dd07e2e2bb6549c4d55.tar.gz linux-6dfac5c33620de7f5ecd9dd07e2e2bb6549c4d55.tar.bz2 linux-6dfac5c33620de7f5ecd9dd07e2e2bb6549c4d55.zip |
ipv6: strengthen fallback fragmentation id generation
First off, we don't need to check for non-NULL rt any more, as we are
guaranteed to always get a valid rt6_info. Drop the check.
In case we couldn't allocate an inet_peer for fragmentation information
we currently generate strictly incrementing fragmentation ids for all
destination. This is done to maximize the cycle and avoid collisions.
Those fragmentation ids are very predictable. At least we should try to
mix in the destination address.
While it should make no difference to simply use a PRNG at this point,
secure_ipv6_id ensures that we don't leak information from prandom,
so its internal state could be recoverable.
This fallback function should normally not get used thus this should
not affect performance at all. It is just meant as a safety net.
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/mesh_ps.c')
0 files changed, 0 insertions, 0 deletions