12 #ifndef NETLINK_UTILS_H_
13 #define NETLINK_UTILS_H_
15 #include <netlink/netlink.h>
16 #include <netlink/list.h>
31 #define NL_PROB_MIN 0x0
37 #define NL_PROB_MAX 0xffffffff
49 extern int nl_rate2str(
unsigned long long,
int,
char *,
size_t);
54 extern char *
nl_size2str(
const size_t,
char *,
const size_t);
62 extern int nl_str2msec(
const char *, uint64_t *);
63 extern char *
nl_msec2str(uint64_t,
char *,
size_t);
66 extern char * nl_llproto2str(
int,
char *,
size_t);
67 extern int nl_str2llproto(
const char *);
70 extern char * nl_ether_proto2str(
int,
char *,
size_t);
71 extern int nl_str2ether_proto(
const char *);
74 extern char * nl_ip_proto2str(
int,
char *,
size_t);
75 extern int nl_str2ip_proto(
const char *);
80 extern void nl_dump_line(
struct nl_dump_params *,
const char *, ...);