From 31118c770f1bc822226b8d3f70bad1904552745c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 19 Apr 2010 18:14:45 +0200 Subject: add mnl_nlmsg_fprintf() function for debugging purposes This function is still quite preliminary, comments welcome! Signed-off-by: Pablo Neira Ayuso --- include/libmnl/libmnl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index 259ddc2..cec6304 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -1,6 +1,7 @@ #ifndef _LIBMNL_H_ #define _LIBMNL_H_ +#include #include #include /* for sa_family_t */ #include @@ -57,7 +58,7 @@ extern void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, int offset extern void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh); /* Netlink dump message */ -extern void mnl_nlmsg_print(const struct nlmsghdr *nlh); +extern void mnl_nlmsg_fprintf(FILE *fd, const struct nlmsghdr *nlh); /* * generic netlink attributes API -- cgit v1.2.3