Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

Utilities
[Core]


Classes

struct  nl_dump_params

Ethernet Protocol Translations

static struct trans_tbl ether_protos []
char * nl_ether_proto2str (int eproto, char *buf, size_t len)
int nl_str2ether_proto (const char *name)

Link Layer Protocol Translations

static struct trans_tbl llprotos []
char * nl_llproto2str (int llproto, char *buf, size_t len)
int nl_str2llproto (const char *name)

Netlink Family Translations

static struct trans_tbl nlfamilies []
char * nl_nlfamily2str (int family, char *buf, size_t size)
int nl_str2nlfamily (const char *name)

Time Translations

static double ticks_per_usec = 1.0f
static uint32_t user_hz = 100
static void __init get_psched_settings (void)
int nl_get_hz (void)
char * nl_msec2str (uint64_t msec, char *buf, size_t len)
int nl_str2msec (const char *str, uint64_t *result)
uint32_t nl_ticks2us (uint32_t ticks)
uint32_t nl_us2ticks (uint32_t us)

Dumping Helpers

static void dump_one (struct nl_dump_params *parms, const char *fmt, va_list args)
void nl_dump (struct nl_dump_params *params, const char *fmt,...)
void nl_dump_line (struct nl_dump_params *parms, const char *fmt,...)
void nl_new_line (struct nl_dump_params *params)

Unit Pretty-Printing

double nl_cancel_down_bits (unsigned long long l, char **unit)
double nl_cancel_down_bytes (unsigned long long l, char **unit)
double nl_cancel_down_us (uint32_t l, char **unit)

IP Protocol Translations

char * nl_ip_proto2str (int proto, char *buf, size_t len)
int nl_str2ip_proto (const char *name)

Generic Unit Translations

long nl_prob2int (const char *str)
long nl_size2int (const char *str)

Probability Constants

#define NL_PROB_MAX   0xffffffff
#define NL_PROB_MIN   0x0

Enumerations

enum  nl_dump_type {
  NL_DUMP_LINE, NL_DUMP_DETAILS, NL_DUMP_STATS, NL_DUMP_ENV,
  __NL_DUMP_MAX
}

Functions

int __nl_read_num_str_file (const char *path, int(*cb)(long, const char *))
static void __init nl_debug_init (void)

Variables

int nl_debug = 0
struct nl_dump_params nl_debug_dp


Generated by  Doxygen 1.6.0   Back to index