netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Kernel-space filtering for dumping

Functions

struct nfct_filter_dumpnfct_filter_dump_create (void)
 nfct_filter_dump_create - create a dump filter More...
 
void nfct_filter_dump_destroy (struct nfct_filter_dump *filter)
 nfct_filter_dump_destroy - destroy a dump filter More...
 
void nfct_filter_dump_set_attr (struct nfct_filter_dump *filter_dump, const enum nfct_filter_dump_attr type, const void *value)
 nfct_filter_dump_attr_set - set filter attribute More...
 
void nfct_filter_dump_set_attr_u8 (struct nfct_filter_dump *filter_dump, const enum nfct_filter_dump_attr type, u_int8_t value)
 nfct_filter_dump_attr_set_u8 - set u8 dump filter attribute More...
 

Detailed Description

Function Documentation

struct nfct_filter_dump* nfct_filter_dump_create ( void  )

nfct_filter_dump_create - create a dump filter

This function returns a valid pointer on success, otherwise NULL is returned and errno is appropriately set.

Referenced by main().

Here is the caller graph for this function:

void nfct_filter_dump_destroy ( struct nfct_filter_dump filter)

nfct_filter_dump_destroy - destroy a dump filter

Parameters
filterfilter that we want to destroy

This function releases the memory that is used by the filter object.

References NULL.

Referenced by main().

Here is the caller graph for this function:

void nfct_filter_dump_set_attr ( struct nfct_filter_dump filter_dump,
const enum nfct_filter_dump_attr  type,
const void *  value 
)

nfct_filter_dump_attr_set - set filter attribute

Parameters
filterdump filter object that we want to modify
typefilter attribute type
valuepointer to the value of the filter attribute

References NFCT_FILTER_DUMP_MAX, NULL, set_filter_dump_attr_array, type, unlikely, and value.

Referenced by main(), and nfct_filter_dump_set_attr_u8().

Here is the caller graph for this function:

void nfct_filter_dump_set_attr_u8 ( struct nfct_filter_dump filter_dump,
const enum nfct_filter_dump_attr  type,
u_int8_t  value 
)

nfct_filter_dump_attr_set_u8 - set u8 dump filter attribute

Parameters
filterdump filter object that we want to modify
typefilter attribute type
valuevalue of the filter attribute using unsigned int (32 bits).

References nfct_filter_dump_set_attr().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: