summaryrefslogtreecommitdiffstats
path: root/src/meta.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-09-04 12:51:13 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-09-04 12:52:22 +0200
commit67f4f35cb2df1d21878978d414e108a0fc9e8d73 (patch)
tree4b0b9ca073557ac51c354e9f92fd3f7e8267feaa /src/meta.c
parent327371ac58e8915f0f0dfb4d9942c6f9c0e0e43d (diff)
meta: fix output display of meta length
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>
Diffstat (limited to 'src/meta.c')
-rw-r--r--src/meta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meta.c b/src/meta.c
index 49d81305..17322afd 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -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),