netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mnl.c File Reference
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <time.h>
#include <arpa/inet.h>
#include <libipset/linux_ip_set.h>
#include <libipset/debug.h>
#include <libipset/session.h>
#include <libipset/ui.h>
#include <libipset/utils.h>
#include <libipset/mnl.h>
Include dependency graph for mnl.c:

Data Structures

struct  ipset_handle
 

Macros

#define NFNL_SUBSYS_IPSET   6
 

Functions

int ipset_get_nlmsg_type (const struct nlmsghdr *nlh)
 ipset_get_nlmsg_type - get ipset netlink message type : pointer to the netlink message header More...
 

Variables

const struct ipset_transport ipset_mnl_transport
 

Macro Definition Documentation

#define NFNL_SUBSYS_IPSET   6

Referenced by ipset_get_nlmsg_type().

Function Documentation

int ipset_get_nlmsg_type ( const struct nlmsghdr nlh)

ipset_get_nlmsg_type - get ipset netlink message type : pointer to the netlink message header

Returns the ipset netlink message type, i.e. the ipset command.

References NFNL_SUBSYS_IPSET, and nlmsghdr::nlmsg_type.

Referenced by ipset_debug_msg().

Here is the caller graph for this function:

Variable Documentation

const struct ipset_transport ipset_mnl_transport
Initial value:
= {
.init = ipset_mnl_init,
.fini = ipset_mnl_fini,
.fill_hdr = ipset_mnl_fill_hdr,
.query = ipset_mnl_query,
}

Referenced by ipset_session_init().