]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: split inet6_hash_frag for netfilter and initialize secrets with net_get_random_once
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Wed, 23 Oct 2013 09:06:56 +0000 (11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Oct 2013 21:01:40 +0000 (17:01 -0400)
commit2c487bbadc6954133f4657ce4a51f860c687cfa7
tree6b9d50498ba3b2904b021da902362f90105ded8d
parent5813e45e418a1671dafe0854517faffd9cbfbea6
ipv6: split inet6_hash_frag for netfilter and initialize secrets with net_get_random_once

Defer the fragmentation hash secret initialization for IPv6 like the
previous patch did for IPv4.

Because the netfilter logic reuses the hash secret we have to split it
first. Thus introduce a new nf_hash_frag function which takes care to
seed the hash secret.

Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c