6#ifndef __NETLINK_TYPES_H_
7#define __NETLINK_TYPES_H_
21#define NL_DUMP_MAX (__NL_DUMP_MAX - 1)
101 unsigned int dp_line;
nl_dump_type
Enumeration of dumping variations (dp_type)
@ NL_DUMP_STATS
Dump all attributes including statistics.
@ NL_DUMP_LINE
Dump object briefly on one line.
@ NL_DUMP_DETAILS
Dump all attributes but no statistics.
int dp_pre_dump
PRIVATE Set if a dump was performed prior to the actual dump handler.
void * dp_data
User data pointer, can be used to pass data to callbacks.
int dp_print_index
Causes the cache index to be printed for each element.
void(* dp_cb)(struct nl_dump_params *, char *)
A callback invoked for output.
size_t dp_buflen
Length of the buffer dp_buf.
int dp_prefix
Specifies the number of whitespaces to be put in front of every new line (indentation).
int dp_dump_msgtype
Causes each element to be prefixed with the message type.
char * dp_buf
Alternatively the output may be redirected into a buffer.
enum nl_dump_type dp_type
Specifies the type of dump that is requested.
int dp_ivar
PRIVATE Owned by the current caller.
FILE * dp_fd
File descriptor the dumping output should go to.
void(* dp_nl_cb)(struct nl_dump_params *, int)
A callback invoked for every new line, can be used to customize the indentation.