netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nft_exthdr_expr.c File Reference
#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_rule.h>
#include <netlink/netfilter/nft_expr.h>
#include <netlink/netfilter/nft-expr-modules.h>
Include dependency graph for nft_exthdr_expr.c:

Data Structures

struct  nft_exthdr_expr
 

Functions

int nfnl_nft_exthdr_init (struct nfnl_nft_expr *expr)
 
void nfnl_nft_exthdr_set_dreg (struct nfnl_nft_expr *expr, enum nft_registers reg)
 
int nfnl_nft_exthdr_test_dreg (const struct nfnl_nft_expr *expr)
 
enum nft_registers nfnl_nft_exthdr_get_dreg (const struct nfnl_nft_expr *expr)
 
void nfnl_nft_exthdr_set_type (struct nfnl_nft_expr *expr, uint8_t type)
 
int nfnl_nft_exthdr_test_type (const struct nfnl_nft_expr *expr)
 
uint8_t nfnl_nft_exthdr_get_type (const struct nfnl_nft_expr *expr)
 
void nfnl_nft_exthdr_set_offset (struct nfnl_nft_expr *expr, unsigned int offset)
 
int nfnl_nft_exthdr_test_offset (const struct nfnl_nft_expr *expr)
 
unsigned int nfnl_nft_exthdr_get_offset (const struct nfnl_nft_expr *expr)
 
void nfnl_nft_exthdr_set_len (struct nfnl_nft_expr *expr, unsigned int len)
 
int nfnl_nft_exthdr_test_len (const struct nfnl_nft_expr *expr)
 
unsigned int nfnl_nft_exthdr_get_len (const struct nfnl_nft_expr *expr)
 

Function Documentation

enum nft_registers nfnl_nft_exthdr_get_dreg ( const struct nfnl_nft_expr expr)

References nft_exthdr_expr::dreg.

unsigned int nfnl_nft_exthdr_get_len ( const struct nfnl_nft_expr expr)

References nft_exthdr_expr::len.

unsigned int nfnl_nft_exthdr_get_offset ( const struct nfnl_nft_expr expr)
uint8_t nfnl_nft_exthdr_get_type ( const struct nfnl_nft_expr expr)

References nft_exthdr_expr::type.

int nfnl_nft_exthdr_init ( struct nfnl_nft_expr expr)

References NULL.

void nfnl_nft_exthdr_set_dreg ( struct nfnl_nft_expr expr,
enum nft_registers  reg 
)

References nft_exthdr_expr::dreg.

void nfnl_nft_exthdr_set_len ( struct nfnl_nft_expr expr,
unsigned int  len 
)

References nft_exthdr_expr::len, and len.

void nfnl_nft_exthdr_set_offset ( struct nfnl_nft_expr expr,
unsigned int  offset 
)
void nfnl_nft_exthdr_set_type ( struct nfnl_nft_expr expr,
uint8_t  type 
)

References nft_exthdr_expr::type, and type.

int nfnl_nft_exthdr_test_dreg ( const struct nfnl_nft_expr expr)
int nfnl_nft_exthdr_test_len ( const struct nfnl_nft_expr expr)
int nfnl_nft_exthdr_test_offset ( const struct nfnl_nft_expr expr)
int nfnl_nft_exthdr_test_type ( const struct nfnl_nft_expr expr)