From: Liping Zhang <liping.zhang@xxxxxxxxxxxxxx> Also delete the redundant '\n'. This fixes: # nft add rule filter test meta priority set root # nft list chain filter test table ip filter { chain test { meta priority set root none ffff:ffff } } Signed-off-by: Liping Zhang <liping.zhang@xxxxxxxxxxxxxx> --- src/meta.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/meta.c b/src/meta.c index 74d2b4c..75431a2 100644 --- a/src/meta.c +++ b/src/meta.c @@ -74,9 +74,11 @@ static void tchandle_type_print(const struct expr *expr) switch(handle) { case TC_H_ROOT: - printf("root\n"); + printf("root"); + break; case TC_H_UNSPEC: - printf("none\n"); + printf("none"); + break; default: if (TC_H_MAJ(handle) == 0) printf(":%04x", TC_H_MIN(handle)); -- 2.5.5 -- 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