#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"
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) |
int nft_data_reg_json_parse | ( | union nft_data_reg * | reg, |
json_t * | data, | ||
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 | ||
) |
References DATA_CHAIN, DATA_VALUE, DATA_VERDICT, NFT_OUTPUT_DEFAULT, NFT_OUTPUT_JSON, and NFT_OUTPUT_XML.
Referenced by nft_buf_reg().
int nft_data_reg_xml_parse | ( | union nft_data_reg * | reg, |
mxml_node_t * | tree, | ||
struct nft_parse_err * | err | ||
) |
References DATA_NONE, nft_parse_err::error, mxml_node_t, NFT_PARSE_EMISSINGNODE, nft_parse_err::node_name, NULL, and type.
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.