#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);
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);