diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-16 17:42:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-16 19:47:50 +0100 |
commit | a4b1c0c704d082a70fe68b3a97a9c03416f63ccf (patch) | |
tree | c5d304c9e72641fe6bf85262ba7ec8be4a7373e5 /src/mnl.c | |
parent | 998f010120cf91578717d3ed037bad16f80c963f (diff) |
src: add new --debug=mnl option to enable libmnl debugging
This allows you to dump the netlink message that is send via
libmnl.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/mnl.c')
-rw-r--r-- | src/mnl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,7 +39,7 @@ mnl_talk(struct mnl_socket *nf_sock, const void *data, unsigned int len, int ret; #ifdef DEBUG - if (debug_level & DEBUG_NETLINK) + if (debug_level & DEBUG_MNL) mnl_nlmsg_fprintf(stdout, data, len, sizeof(struct nfgenmsg)); #endif @@ -207,7 +207,7 @@ static ssize_t mnl_nft_socket_sendmsg(const struct mnl_socket *nl) iov[i].iov_len = mnl_nlmsg_batch_size(batch_page->batch); i++; #ifdef DEBUG - if (debug_level & DEBUG_NETLINK) { + if (debug_level & DEBUG_MNL) { mnl_nlmsg_fprintf(stdout, mnl_nlmsg_batch_head(batch_page->batch), mnl_nlmsg_batch_size(batch_page->batch), |