linux/net/netfilter/xt_LED.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * xt_LED.c - netfilter target to make LEDs blink upon packet matches
 *
 * Copyright (C) 2008 Adam Nielsen <[email protected]>
 */
#define pr_fmt(fmt)
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/netfilter/x_tables.h>
#include <linux/slab.h>
#include <linux/leds.h>
#include <linux/mutex.h>

#include <linux/netfilter/xt_LED.h>

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

static LIST_HEAD(xt_led_triggers);
static DEFINE_MUTEX(xt_led_mutex);

/*
 * This is declared in here (the kernel module) only, to avoid having these
 * dependencies in userspace code.  This is what xt_led_info.internal_data
 * points to.
 */
struct xt_led_info_internal {};

#define XT_LED_BLINK_DELAY

static unsigned int
led_tg(struct sk_buff *skb, const struct xt_action_param *par)
{}

static void led_timeout_callback(struct timer_list *t)
{}

static struct xt_led_info_internal *led_trigger_lookup(const char *name)
{}

static int led_tg_check(const struct xt_tgchk_param *par)
{}

static void led_tg_destroy(const struct xt_tgdtor_param *par)
{}

static struct xt_target led_tg_reg __read_mostly =;

static int __init led_tg_init(void)
{}

static void __exit led_tg_exit(void)
{}

module_init();
module_exit(led_tg_exit);