netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nl_dump_params Struct Reference

Dumping parameters. More...

#include <types.h>

Data Fields

enum nl_dump_type dp_type
 Specifies the type of dump that is requested. More...
 
int dp_prefix
 Specifies the number of whitespaces to be put in front of every new line (indentation). More...
 
int dp_print_index
 Causes the cache index to be printed for each element. More...
 
int dp_dump_msgtype
 Causes each element to be prefixed with the message type. More...
 
void(* dp_cb )(struct nl_dump_params *, char *)
 A callback invoked for output. More...
 
void(* dp_nl_cb )(struct nl_dump_params *, int)
 A callback invoked for every new line, can be used to customize the indentation. More...
 
void * dp_data
 User data pointer, can be used to pass data to callbacks. More...
 
FILE * dp_fd
 File descriptor the dumping output should go to. More...
 
char * dp_buf
 Alternatively the output may be redirected into a buffer. More...
 
size_t dp_buflen
 Length of the buffer dp_buf. More...
 
int dp_pre_dump
 PRIVATE Set if a dump was performed prior to the actual dump handler. More...
 
int dp_ivar
 PRIVATE Owned by the current caller. More...
 
unsigned int dp_line
 

Detailed Description

Dumping parameters.

Field Documentation

char* nl_dump_params::dp_buf

Alternatively the output may be redirected into a buffer.

Referenced by nl_new_line().

size_t nl_dump_params::dp_buflen

Length of the buffer dp_buf.

Referenced by nl_new_line().

void(* nl_dump_params::dp_cb)(struct nl_dump_params *, char *)

A callback invoked for output.

Passed arguments are:

  • dumping parameters
  • string to append to the output
void* nl_dump_params::dp_data

User data pointer, can be used to pass data to callbacks.

int nl_dump_params::dp_dump_msgtype

Causes each element to be prefixed with the message type.

FILE* nl_dump_params::dp_fd

File descriptor the dumping output should go to.

Referenced by main(), and nl_new_line().

int nl_dump_params::dp_ivar

PRIVATE Owned by the current caller.

Referenced by rtnl_route_nh_dump().

unsigned int nl_dump_params::dp_line

Referenced by nl_new_line().

void(* nl_dump_params::dp_nl_cb)(struct nl_dump_params *, int)

A callback invoked for every new line, can be used to customize the indentation.

Passed arguments are:

  • dumping parameters
  • line number starting from 0

Referenced by nl_new_line().

int nl_dump_params::dp_pre_dump

PRIVATE Set if a dump was performed prior to the actual dump handler.

int nl_dump_params::dp_prefix

Specifies the number of whitespaces to be put in front of every new line (indentation).

Referenced by nl_new_line().

int nl_dump_params::dp_print_index

Causes the cache index to be printed for each element.

enum nl_dump_type nl_dump_params::dp_type

Specifies the type of dump that is requested.

Referenced by main(), nl_cache_dump_filter(), and rtnl_route_nh_dump().


The documentation for this struct was generated from the following file: