linux/include/uapi/linux/netfilter/ipset/ip_set.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/* Copyright (C) 2000-2002 Joakim Axelsson <[email protected]>
 *                         Patrick Schaaf <[email protected]>
 *                         Martin Josefsson <[email protected]>
 * Copyright (C) 2003-2011 Jozsef Kadlecsik <[email protected]>
 */
#ifndef _UAPI_IP_SET_H
#define _UAPI_IP_SET_H

#include <linux/types.h>

/* The protocol versions */
#define IPSET_PROTOCOL
#define IPSET_PROTOCOL_MIN

/* The max length of strings including NUL: set and type identifiers */
#define IPSET_MAXNAMELEN

/* The maximum permissible comment length we will accept over netlink */
#define IPSET_MAX_COMMENT_SIZE

/* Message types and commands */
enum ipset_cmd {};

/* Attributes at command level */
enum {};
#define IPSET_ATTR_CMD_MAX

/* CADT specific attributes */
enum {};
#define IPSET_ATTR_CREATE_MAX

/* ADT specific attributes */
enum {};
#define IPSET_ATTR_ADT_MAX

/* IP specific attributes */
enum {};
#define IPSET_ATTR_IPADDR_MAX

/* Error codes */
enum ipset_errno {};

/* Flags at command level or match/target flags, lower half of cmdattrs*/
enum ipset_cmd_flags {};

/* Flags at CADT attribute level, upper half of cmdattrs */
enum ipset_cadt_flags {};

/* The flag bits which correspond to the non-extension create flags */
enum ipset_create_flags {};

/* Commands with settype-specific attributes */
enum ipset_adt {};

/* Sets are identified by an index in kernel space. Tweak with ip_set_id_t
 * and IPSET_INVALID_ID if you want to increase the max number of sets.
 * Also, IPSET_ATTR_INDEX must be changed.
 */
ip_set_id_t;

#define IPSET_INVALID_ID

enum ip_set_dim {};

/* Option flags for kernel operations */
enum ip_set_kopt {};

enum {};

/* Backward compatibility for set match v3 */
struct ip_set_counter_match0 {};

struct ip_set_counter_match {};

/* Interface to iptables/ip6tables */

#define SO_IP_SET

ip_set_name_index;

#define IP_SET_OP_GET_BYNAME
struct ip_set_req_get_set {};

#define IP_SET_OP_GET_BYINDEX
/* Uses ip_set_req_get_set */

#define IP_SET_OP_GET_FNAME
struct ip_set_req_get_set_family {};

#define IP_SET_OP_VERSION
struct ip_set_req_version {};

#endif /* _UAPI_IP_SET_H */