summaryrefslogtreecommitdiff
path: root/include/libmnl
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-04-19 18:14:45 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-04-19 18:14:45 +0200
commit31118c770f1bc822226b8d3f70bad1904552745c (patch)
treec37ca1381fcb579ee0516d40db8e09b2c51fafee /include/libmnl
parent4d2a25dafdb3fcc73226af155fd0a71f551fae7d (diff)
downloadlibmnl-31118c770f1bc822226b8d3f70bad1904552745c.tar.gz
libmnl-31118c770f1bc822226b8d3f70bad1904552745c.zip
add mnl_nlmsg_fprintf() function for debugging purposes
This function is still quite preliminary, comments welcome! Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r--include/libmnl/libmnl.h3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
#include <stdint.h>
#include <sys/socket.h> /* for sa_family_t */
#include <linux/netlink.h>
@@ -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