]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: Enhance the codes used to get random once
authorGao Feng <fgao@ikuai8.com>
Sun, 18 Sep 2016 02:52:25 +0000 (10:52 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Sep 2016 07:30:36 +0000 (09:30 +0200)
commit13cdb7bf04e8176c07cfb26ee1d5f3a99eda3996
tree6994143546494084ca28057c9af41b9a0dd079f4
parent121ddb5a279faa09b35643e13a05b4ca9541a6c9
netfilter: Enhance the codes used to get random once

There are some codes which are used to get one random once in netfilter.
We could use net_get_random_once to simplify these codes.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_RATEEST.c
net/netfilter/xt_connlimit.c
net/netfilter/xt_recent.c