From 67ea8c8bc3668372dc3e5c9370b151b723931428 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 14 Jan 2023 19:16:40 +0100 Subject: [PATCH] nftnlrdr_misc.c: debug message about proto_min_reg/proto_min_val --- miniupnpd/netfilter_nft/nftnlrdr_misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniupnpd/netfilter_nft/nftnlrdr_misc.c b/miniupnpd/netfilter_nft/nftnlrdr_misc.c index 82a36c0..3cbe905 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr_misc.c +++ b/miniupnpd/netfilter_nft/nftnlrdr_misc.c @@ -4,7 +4,7 @@ * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/ * (c) 2015 Tomofumi Hayashi * (c) 2019 Paul Chambers - * (c) 2019-2021 Thomas Bernard + * (c) 2019-2023 Thomas Bernard * * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution. @@ -291,6 +291,7 @@ parse_rule_nat(struct nftnl_expr *e, rule_t *r) reg_val_ptr = get_reg_val_ptr(r, proto_min_reg); if (reg_val_ptr != NULL) { proto_min_val = htons((uint16_t)*reg_val_ptr); + syslog(LOG_DEBUG, "%s: proto_min_reg %u : %08x => %hd", "parse_rule_nat", proto_min_reg, *reg_val_ptr, proto_min_val); } else { syslog(LOG_ERR, "%s: invalid proto_min_reg %u", "parse_rule_nat", proto_min_reg); }