linux/net/netfilter/ipset/ip_set_bitmap_gen.h

/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (C) 2013 Jozsef Kadlecsik <[email protected]> */

#ifndef __IP_SET_BITMAP_IP_GEN_H
#define __IP_SET_BITMAP_IP_GEN_H

#include <linux/rcupdate_wait.h>

#define mtype_do_test
#define mtype_gc_test
#define mtype_is_filled
#define mtype_do_add
#define mtype_ext_cleanup
#define mtype_do_del
#define mtype_do_list
#define mtype_do_head
#define mtype_adt_elem
#define mtype_add_timeout
#define mtype_gc_init
#define mtype_kadt
#define mtype_uadt
#define mtype_destroy
#define mtype_memsize
#define mtype_flush
#define mtype_head
#define mtype_same_set
#define mtype_elem
#define mtype_test
#define mtype_add
#define mtype_del
#define mtype_list
#define mtype_gc
#define mtype_cancel_gc
#define mtype

#define get_ext(set, map, id)

static void
mtype_gc_init(struct ip_set *set, void (*gc)(struct timer_list *t))
{}

static void
mtype_ext_cleanup(struct ip_set *set)
{}

static void
mtype_destroy(struct ip_set *set)
{}

static void
mtype_flush(struct ip_set *set)
{}

/* Calculate the actual memory size of the set data */
static size_t
mtype_memsize(const struct mtype *map, size_t dsize)
{}

static int
mtype_head(struct ip_set *set, struct sk_buff *skb)
{}

static int
mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext,
	   struct ip_set_ext *mext, u32 flags)
{}

static int
mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext,
	  struct ip_set_ext *mext, u32 flags)
{}

static int
mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext,
	  struct ip_set_ext *mext, u32 flags)
{}

#ifndef IP_SET_BITMAP_STORED_TIMEOUT
static bool
mtype_is_filled(const struct mtype_elem *x)
{}
#endif

static int
mtype_list(const struct ip_set *set,
	   struct sk_buff *skb, struct netlink_callback *cb)
{}

static void
mtype_gc(struct timer_list *t)
{}

static void
mtype_cancel_gc(struct ip_set *set)
{}

static const struct ip_set_type_variant mtype =;

#endif /* __IP_SET_BITMAP_IP_GEN_H */