netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
data_reg.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <limits.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netinet/in.h>
#include <libmnl/libmnl.h>
#include <linux/netfilter.h>
#include <linux/netfilter/nf_tables.h>
#include <libnftnl/expr.h>
#include <libnftnl/rule.h>
#include "expr_ops.h"
#include "data_reg.h"
#include "internal.h"
Include dependency graph for data_reg.c:

Functions

int nft_data_reg_json_parse (union nft_data_reg *reg, json_t *data, struct nft_parse_err *err)
 
int nft_data_reg_xml_parse (union nft_data_reg *reg, mxml_node_t *tree, struct nft_parse_err *err)
 
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_parse_data (union nft_data_reg *data, struct nlattr *attr, int *type)
 

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: