linux/drivers/net/nlmon.c

// SPDX-License-Identifier: GPL-2.0-only
#include <linux/ethtool.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/netlink.h>
#include <net/net_namespace.h>
#include <linux/if_arp.h>
#include <net/rtnetlink.h>

static netdev_tx_t nlmon_xmit(struct sk_buff *skb, struct net_device *dev)
{}

struct nlmon {};

static int nlmon_open(struct net_device *dev)
{}

static int nlmon_close(struct net_device *dev)
{}

static void
nlmon_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats)
{}

static u32 always_on(struct net_device *dev)
{}

static const struct ethtool_ops nlmon_ethtool_ops =;

static const struct net_device_ops nlmon_ops =;

static void nlmon_setup(struct net_device *dev)
{}

static int nlmon_validate(struct nlattr *tb[], struct nlattr *data[],
			  struct netlink_ext_ack *extack)
{}

static struct rtnl_link_ops nlmon_link_ops __read_mostly =;

static __init int nlmon_register(void)
{}

static __exit void nlmon_unregister(void)
{}

module_init();
module_exit(nlmon_unregister);

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