linux/net/sched/act_connmark.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * net/sched/act_connmark.c  netfilter connmark retriever action
 * skb mark is over-written
 *
 * Copyright (c) 2011 Felix Fietkau <[email protected]>
*/

#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/pkt_cls.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <net/netlink.h>
#include <net/pkt_sched.h>
#include <net/act_api.h>
#include <net/pkt_cls.h>
#include <uapi/linux/tc_act/tc_connmark.h>
#include <net/tc_act/tc_connmark.h>
#include <net/tc_wrapper.h>

#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_core.h>
#include <net/netfilter/nf_conntrack_zones.h>

static struct tc_action_ops act_connmark_ops;

TC_INDIRECT_SCOPE int tcf_connmark_act(struct sk_buff *skb,
				       const struct tc_action *a,
				       struct tcf_result *res)
{}

static const struct nla_policy connmark_policy[TCA_CONNMARK_MAX + 1] =;

static int tcf_connmark_init(struct net *net, struct nlattr *nla,
			     struct nlattr *est, struct tc_action **a,
			     struct tcf_proto *tp, u32 flags,
			     struct netlink_ext_ack *extack)
{}

static inline int tcf_connmark_dump(struct sk_buff *skb, struct tc_action *a,
				    int bind, int ref)
{}

static void tcf_connmark_cleanup(struct tc_action *a)
{}

static struct tc_action_ops act_connmark_ops =;
MODULE_ALIAS_NET_ACT();

static __net_init int connmark_init_net(struct net *net)
{}

static void __net_exit connmark_exit_net(struct list_head *net_list)
{}

static struct pernet_operations connmark_net_ops =;

static int __init connmark_init_module(void)
{}

static void __exit connmark_cleanup_module(void)
{}

module_init();
module_exit(connmark_cleanup_module);
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();