netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
expr_ops Struct Reference

#include <expression.h>

Collaboration diagram for expr_ops:

Data Fields

struct list_head head
 
const char * name
 
uint32_t alloc_len
 
int max_attr
 
void(* free )(struct nft_rule_expr *e)
 
int(* set )(struct nft_rule_expr *e, uint16_t type, const void *data, uint32_t data_len)
 
const void *(* get )(const struct nft_rule_expr *e, uint16_t type, uint32_t *data_len)
 
int(* parse )(struct nft_rule_expr *e, struct nlattr *attr)
 
void(* build )(struct nlmsghdr *nlh, struct nft_rule_expr *e)
 
int(* snprintf )(char *buf, size_t len, uint32_t type, uint32_t flags, struct nft_rule_expr *e)
 
int(* xml_parse )(struct nft_rule_expr *e, mxml_node_t *tree, struct nft_parse_err *err)
 
int(* json_parse )(struct nft_rule_expr *e, json_t *data, struct nft_parse_err *err)
 
enum expr_types type
 
void(* clone )(struct expr *new, const struct expr *expr)
 
void(* destroy )(struct expr *expr)
 
void(* set_type )(const struct expr *expr, const struct datatype *dtype, enum byteorder byteorder)
 
void(* print )(const struct expr *expr)
 
bool(* cmp )(const struct expr *e1, const struct expr *e2)
 
void(* pctx_update )(struct proto_ctx *ctx, const struct expr *expr)
 

Field Documentation

uint32_t expr_ops::alloc_len

Referenced by nft_rule_expr_alloc().

void(* expr_ops::build)(struct nlmsghdr *nlh, struct nft_rule_expr *e)
void(* expr_ops::clone)(struct expr *new, const struct expr *expr)

Referenced by expr_clone().

bool(* expr_ops::cmp)(const struct expr *e1, const struct expr *e2)

Referenced by expr_cmp().

void(* expr_ops::destroy)(struct expr *expr)

Referenced by expr_free().

void(* expr_ops::free)(struct nft_rule_expr *e)

Referenced by nft_rule_expr_free().

const void*(* expr_ops::get)(const struct nft_rule_expr *e, uint16_t type, uint32_t *data_len)

Referenced by nft_rule_expr_get().

struct list_head expr_ops::head
int(* expr_ops::json_parse)(struct nft_rule_expr *e, json_t *data, struct nft_parse_err *err)
int expr_ops::max_attr
int(* expr_ops::parse)(struct nft_rule_expr *e, struct nlattr *attr)
void(* expr_ops::pctx_update)(struct proto_ctx *ctx, const struct expr *expr)

Referenced by payload_gen_dependency().

void(* expr_ops::print)(const struct expr *expr)

Referenced by expr_print().

int(* expr_ops::set)(struct nft_rule_expr *e, uint16_t type, const void *data, uint32_t data_len)

Referenced by nft_rule_expr_set().

void(* expr_ops::set_type)(const struct expr *expr, const struct datatype *dtype, enum byteorder byteorder)

Referenced by expr_set_type().

int(* expr_ops::snprintf)(char *buf, size_t len, uint32_t type, uint32_t flags, struct nft_rule_expr *e)

Referenced by nft_rule_expr_snprintf().

int(* expr_ops::xml_parse)(struct nft_rule_expr *e, mxml_node_t *tree, struct nft_parse_err *err)

The documentation for this struct was generated from the following files: