]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
meta: fix output display of meta length
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 4 Sep 2013 10:51:13 +0000 (12:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 4 Sep 2013 10:52:22 +0000 (12:52 +0200)
nft list table filter

Before:
meta len 1000 counter packets 0 bytes 0
After:
meta length 1000 counter packets 0 bytes 0

Now it doesn't break with nft -f.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/meta.c

index 49d81305d043e76f739425966c22880693a3fedc..17322afd25f814c2b83a7c764acd15ca29b61468 100644 (file)
@@ -283,7 +283,7 @@ static const struct datatype gid_type = {
 };
 
 static const struct meta_template meta_templates[] = {
-       [NFT_META_LEN]          = META_TEMPLATE("len",       &integer_type,
+       [NFT_META_LEN]          = META_TEMPLATE("length",    &integer_type,
                                                4 * 8, BYTEORDER_HOST_ENDIAN),
        [NFT_META_PROTOCOL]     = META_TEMPLATE("protocol",  &ethertype_type,
                                                2 * 8, BYTEORDER_BIG_ENDIAN),