This is useful to know if a builtin table is requested to be created. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@xxxxxxxxxxxxxxx> --- iptables/nft.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/iptables/nft.c b/iptables/nft.c index fc9db99..968fe8c 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -451,6 +451,14 @@ nft_table_builtin_add(struct nft_handle *h, struct builtin_table *_t, nft_table_nlmsg_build_payload(nlh, t); nft_table_free(t); +#ifdef NLDEBUG + char tmp[1024]; + + nft_table_snprintf(tmp, sizeof(tmp), t, 0, 0); + printf("DEBUG: table: %s", tmp); + mnl_nlmsg_fprintf(stdout, nlh, nlh->nlmsg_len, sizeof(struct nfgenmsg)); +#endif + ret = mnl_talk(h, nlh, NULL, NULL); if (ret < 0) { if (errno != EEXIST) -- 1.8.3.2 -- 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