1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * (C) 2010 Pablo Neira Ayuso <pablo@netfilter.org>
4  */
5 
6 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7 
8 #include <linux/netfilter.h>
9 #include <linux/slab.h>
10 #include <linux/kernel.h>
11 #include <linux/moduleparam.h>
12 
13 #include <net/netfilter/nf_conntrack.h>
14 #include <net/netfilter/nf_conntrack_extend.h>
15 #include <net/netfilter/nf_conntrack_timestamp.h>
16 
17 static bool nf_ct_tstamp __read_mostly;
18 
19 module_param_named(tstamp, nf_ct_tstamp, bool, 0644);
20 MODULE_PARM_DESC(tstamp, "Enable connection tracking flow timestamping.");
21 
nf_conntrack_tstamp_pernet_init(struct net * net)22 void nf_conntrack_tstamp_pernet_init(struct net *net)
23 {
24 	net->ct.sysctl_tstamp = nf_ct_tstamp;
25 }
26