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
42 extern int nl_get_errno(
void);
58 extern char *
nl_msec2str(uint64_t,
char *,
size_t);
61 extern char * nl_llproto2str(
int,
char *,
size_t);
62 extern int nl_str2llproto(
const char *);
65 extern char * nl_ether_proto2str(
int,
char *,
size_t);
66 extern int nl_str2ether_proto(
const char *);
69 extern char * nl_ip_proto2str(
int,
char *,
size_t);
70 extern int nl_str2ip_proto(
const char *);
75 extern void nl_dump_line(
struct nl_dump_params *,
int,
const char *, ...);