summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_ps.c
diff options
context:
space:
mode:
authorHannes Frederic Sowa <hannes@stressinduktion.org>2014-03-30 18:28:03 +0200
committerDavid S. Miller <davem@davemloft.net>2014-03-31 16:33:38 -0400
commit6dfac5c33620de7f5ecd9dd07e2e2bb6549c4d55 (patch)
treec3c3fd552b53f016c85aebdf035a83d4f06f582d /net/mac80211/mesh_ps.c
parenta50e233c50dbc881abaa0e4070789064e8d12d70 (diff)
downloadlinux-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