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

Data Structures

struct  nft_expr_counter
 

Variables

struct expr_ops expr_ops_counter
 

Variable Documentation

struct expr_ops expr_ops_counter
Initial value:
= {
.name = "counter",
.alloc_len = sizeof(struct nft_expr_counter),
.max_attr = NFTA_COUNTER_MAX,
.set = nft_rule_expr_counter_set,
.get = nft_rule_expr_counter_get,
.parse = nft_rule_expr_counter_parse,
.build = nft_rule_expr_counter_build,
.snprintf = nft_rule_expr_counter_snprintf,
.xml_parse = nft_rule_expr_counter_xml_parse,
.json_parse = nft_rule_expr_counter_json_parse,
}
#define NFTA_COUNTER_MAX
Definition: nf_tables.h:691
Definition: counter.c:27