nftnlrdr_misc.c: debug message about proto_min_reg/proto_min_val
This commit is contained in:
parent
014c9df8ee
commit
67ea8c8bc3
|
@ -4,7 +4,7 @@
|
||||||
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
||||||
* (c) 2015 Tomofumi Hayashi
|
* (c) 2015 Tomofumi Hayashi
|
||||||
* (c) 2019 Paul Chambers
|
* (c) 2019 Paul Chambers
|
||||||
* (c) 2019-2021 Thomas Bernard
|
* (c) 2019-2023 Thomas Bernard
|
||||||
*
|
*
|
||||||
* This software is subject to the conditions detailed
|
* This software is subject to the conditions detailed
|
||||||
* in the LICENCE file provided within the distribution.
|
* 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);
|
reg_val_ptr = get_reg_val_ptr(r, proto_min_reg);
|
||||||
if (reg_val_ptr != NULL) {
|
if (reg_val_ptr != NULL) {
|
||||||
proto_min_val = htons((uint16_t)*reg_val_ptr);
|
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 {
|
} else {
|
||||||
syslog(LOG_ERR, "%s: invalid proto_min_reg %u", "parse_rule_nat", proto_min_reg);
|
syslog(LOG_ERR, "%s: invalid proto_min_reg %u", "parse_rule_nat", proto_min_reg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue