Eric Dumazet 87c48fa3b4 ipv6: make fragment identifications less predictable
IPv6 fragment identification generation is way beyond what we use for
IPv4 : It uses a single generator. Its not scalable and allows DOS
attacks.

Now inetpeer is IPv6 aware, we can use it to provide a more secure and
scalable frag ident generator (per destination, instead of system wide)

This patch :
1) defines a new secure_ipv6_id() helper
2) extends inet_getid() to provide 32bit results
3) extends ipv6_select_ident() with a new dest parameter

Reported-by: Fernando Gont <fernando@gont.com.ar>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-07-21 21:25:58 -07:00
..
2010-09-23 14:33:39 -07:00
2011-04-22 11:04:14 -07:00
2010-05-11 14:40:55 +02:00
2011-04-22 11:04:14 -07:00
2011-05-19 16:21:22 -04:00
2011-07-01 16:11:16 -07:00
2011-07-21 21:24:25 -07:00
2010-10-25 13:09:45 -07:00