netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nft_counter_expr.c File Reference
#include <byteswap.h>
#include <sys/types.h>
#include <linux/netfilter/nf_tables.h>
#include <netlink-local.h>
#include <netlink/attr.h>
#include <netlink/netfilter/nfnl.h>
#include <netlink/netfilter/nft_expr.h>
#include <netlink/netfilter/nft-expr-modules.h>
Include dependency graph for nft_counter_expr.c:

Data Structures

struct  nft_counter_expr
 

Functions

int nfnl_nft_counter_init (struct nfnl_nft_expr *expr)
 
void nfnl_nft_counter_set_packets (struct nfnl_nft_expr *expr, uint64_t packets)
 
int nfnl_nft_counter_test_packets (const struct nfnl_nft_expr *expr)
 
uint64_t nfnl_nft_counter_get_packets (const struct nfnl_nft_expr *expr)
 
void nfnl_nft_counter_set_bytes (struct nfnl_nft_expr *expr, uint64_t bytes)
 
int nfnl_nft_counter_test_bytes (const struct nfnl_nft_expr *expr)
 
uint64_t nfnl_nft_counter_get_bytes (const struct nfnl_nft_expr *expr)
 

Function Documentation

uint64_t nfnl_nft_counter_get_bytes ( const struct nfnl_nft_expr expr)
uint64_t nfnl_nft_counter_get_packets ( const struct nfnl_nft_expr expr)
int nfnl_nft_counter_init ( struct nfnl_nft_expr expr)

References NULL.

Referenced by main().

Here is the caller graph for this function:

void nfnl_nft_counter_set_bytes ( struct nfnl_nft_expr expr,
uint64_t  bytes 
)

References bytes, and nft_counter_expr::bytes.

void nfnl_nft_counter_set_packets ( struct nfnl_nft_expr expr,
uint64_t  packets 
)
int nfnl_nft_counter_test_bytes ( const struct nfnl_nft_expr expr)
int nfnl_nft_counter_test_packets ( const struct nfnl_nft_expr expr)