The len unsigned int was not being exported in XML. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx> --- src/expr/bitwise.c | 5 +++-- tests/xmlfiles/20-rule-bitwise.xml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/expr/bitwise.c b/src/expr/bitwise.c index 67c120f..52fc648 100644 --- a/src/expr/bitwise.c +++ b/src/expr/bitwise.c @@ -280,8 +280,9 @@ nft_rule_expr_bitwise_snprintf_xml(char *buf, size_t size, int len = size, offset = 0, ret; ret = snprintf(buf, len, "<sreg>%u</sreg>" - "<dreg>%u</dreg>", - bitwise->sreg, bitwise->dreg); + "<dreg>%u</dreg>" + "<len>%u</len>", + bitwise->sreg, bitwise->dreg, bitwise->len); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); ret = snprintf(buf+offset, len, "<mask>"); diff --git a/tests/xmlfiles/20-rule-bitwise.xml b/tests/xmlfiles/20-rule-bitwise.xml index 411e28f..ce2d851 100644 --- a/tests/xmlfiles/20-rule-bitwise.xml +++ b/tests/xmlfiles/20-rule-bitwise.xml @@ -3,6 +3,7 @@ <expr type="bitwise"> <sreg>2</sreg> <dreg>2</dreg> + <len>16</len> <mask> <data_reg type="value"> <len>16</len> -- 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