Useful for debugging purposes. --- src/mnl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mnl.c b/src/mnl.c index fe218fc..a711b5e 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -38,6 +38,11 @@ mnl_talk(struct mnl_socket *nf_sock, const void *data, unsigned int len, uint32_t portid = mnl_socket_get_portid(nf_sock); int ret; +#ifdef DEBUG + if (debug_level & DEBUG_NETLINK) + mnl_nlmsg_fprintf(stdout, data, len, sizeof(struct nfgenmsg)); +#endif + if (mnl_socket_sendto(nf_sock, data, len) < 0) return -1; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html