netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nft_expr_obj.c File Reference
#include <sys/types.h>
#include <linux/netfilter/nf_tables.h>
#include <netlink-local.h>
#include <netlink/netfilter/nfnl.h>
#include <netlink/netfilter/netfilter.h>
#include <netlink/netfilter/nft_expr.h>
#include <netlink/netfilter/nft-expr-modules.h>
Include dependency graph for nft_expr_obj.c:

Functions

Allocation/Freeing
struct nfnl_nft_exprnfnl_nft_expr_alloc (void)
 
void nfnl_nft_expr_get (struct nfnl_nft_expr *expr)
 
void nfnl_nft_expr_put (struct nfnl_nft_expr *expr)
 
Attributes
const char * nfnl_nft_expr_get_type (const struct nfnl_nft_expr *expr)
 

Variables

struct nl_object_ops nft_expr_obj_ops
 

Function Documentation

struct nfnl_nft_expr* nfnl_nft_expr_alloc ( void  )

References nft_expr_obj_ops, and nl_object_alloc().

Referenced by main(), and nfnl_nft_expr_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_expr_get ( struct nfnl_nft_expr expr)

References nl_object_get().

Here is the call graph for this function:

const char* nfnl_nft_expr_get_type ( const struct nfnl_nft_expr expr)
void nfnl_nft_expr_put ( struct nfnl_nft_expr expr)

References nl_object_put().

Here is the call graph for this function:

Variable Documentation

struct nl_object_ops nft_expr_obj_ops
Initial value:
= {
.oo_name = "netfilter/nft_expr",
.oo_size = sizeof(struct nfnl_nft_expr),
.oo_free_data = nft_expr_free_data,
.oo_clone = nft_expr_clone,
.oo_dump = {
[NL_DUMP_LINE] = nft_expr_dump,
[NL_DUMP_DETAILS] = nft_expr_dump,
[NL_DUMP_STATS] = nft_expr_dump,
},
.oo_attrs2str = nft_expr_attrs2str,
.oo_compare = nft_expr_compare,
}
Dump object briefly on one line.
Definition: types.h:22
Dump all attributes but no statistics.
Definition: types.h:23
Dump all attributes including statistics.
Definition: types.h:24
Definition: netlink-types.h:857

Referenced by nfnl_nft_expr_alloc().