linux/net/sched/act_skbmod.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * net/sched/act_skbmod.c  skb data modifier
 *
 * Copyright (c) 2016 Jamal Hadi Salim <[email protected]>
*/

#include <linux/module.h>
#include <linux/if_arp.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <net/inet_ecn.h>
#include <net/netlink.h>
#include <net/pkt_sched.h>
#include <net/pkt_cls.h>
#include <net/tc_wrapper.h>

#include <linux/tc_act/tc_skbmod.h>
#include <net/tc_act/tc_skbmod.h>

static struct tc_action_ops act_skbmod_ops;

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

static const struct nla_policy skbmod_policy[TCA_SKBMOD_MAX + 1] =;

static int tcf_skbmod_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 void tcf_skbmod_cleanup(struct tc_action *a)
{}

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

static struct tc_action_ops act_skbmod_ops =;
MODULE_ALIAS_NET_ACT();

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

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

static struct pernet_operations skbmod_net_ops =;

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

static int __init skbmod_init_module(void)
{}

static void __exit skbmod_cleanup_module(void)
{}

module_init();
module_exit(skbmod_cleanup_module);