cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

nf_conntrack_timestamp.c (667B)


      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
     17static bool nf_ct_tstamp __read_mostly;
     18
     19module_param_named(tstamp, nf_ct_tstamp, bool, 0644);
     20MODULE_PARM_DESC(tstamp, "Enable connection tracking flow timestamping.");
     21
     22void nf_conntrack_tstamp_pernet_init(struct net *net)
     23{
     24	net->ct.sysctl_tstamp = nf_ct_tstamp;
     25}