summaryrefslogtreecommitdiffstats
path: root/src/ct.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-08-22 00:27:48 +0200
committerFlorian Westphal <fw@strlen.de>2016-08-22 18:36:43 +0200
commit09d27ff9138e4be38b86499e26ad2d1116dd0f02 (patch)
tree266b2daf46b1c3d757528ee99e66a8fbad748cb1 /src/ct.c
parent0b4bdb894f1225f1045fd9d12f6d975f27e6c368 (diff)
ct: display bit number instead of raw value
... and add test cases for ct label. Currently this dumped 'label 0x2', now 'label 1' would be shown. This makes add/list behave the same. Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/ct.c')
-rw-r--r--src/ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ct.c b/src/ct.c
index 018ca0b9..a6829389 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -113,7 +113,7 @@ static void ct_label_type_print(const struct expr *expr)
return;
}
/* can happen when connlabel.conf is altered after rules were added */
- gmp_printf("0x%Zx", expr->value);
+ printf("%ld\n", (long)mpz_scan1(expr->value, 0));
}
static struct error_record *ct_label_type_parse(const struct expr *sym,