netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
data_reg.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

union  nft_data_reg
 

Macros

#define json_t   void
 
#define mxml_node_t   void
 

Enumerations

enum  {
  DATA_NONE,
  DATA_VALUE,
  DATA_VERDICT,
  DATA_CHAIN
}
 

Functions

int nft_data_reg_snprintf (char *buf, size_t size, union nft_data_reg *reg, uint32_t output_format, uint32_t flags, int reg_type)
 
int nft_data_reg_xml_parse (union nft_data_reg *reg, mxml_node_t *tree, struct nft_parse_err *err)
 
int nft_parse_data (union nft_data_reg *data, struct nlattr *attr, int *type)
 
int nft_data_reg_json_parse (union nft_data_reg *reg, json_t *data, struct nft_parse_err *err)
 

Macro Definition Documentation

#define json_t   void
#define mxml_node_t   void

Referenced by nft_data_reg_xml_parse().

Enumeration Type Documentation

anonymous enum
Enumerator
DATA_NONE 
DATA_VALUE 
DATA_VERDICT 
DATA_CHAIN 

Function Documentation

int nft_data_reg_json_parse ( union nft_data_reg reg,
json_t data,
struct nft_parse_err err 
)

References DATA_NONE, NULL, and type.

int nft_data_reg_snprintf ( char *  buf,
size_t  size,
union nft_data_reg reg,
uint32_t  output_format,
uint32_t  flags,
int  reg_type 
)

References DATA_CHAIN, DATA_VALUE, DATA_VERDICT, NFT_OUTPUT_DEFAULT, NFT_OUTPUT_JSON, and NFT_OUTPUT_XML.

Referenced by nft_buf_reg().

Here is the caller graph for this function:

int nft_data_reg_xml_parse ( union nft_data_reg reg,
mxml_node_t tree,
struct nft_parse_err err 
)
int nft_parse_data ( union nft_data_reg data,
struct nlattr attr,
int *  type 
)

References DATA_VALUE, mnl_attr_parse_nested(), NFTA_DATA_MAX, NFTA_DATA_VALUE, and NFTA_DATA_VERDICT.

Here is the call graph for this function: