diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-04 12:51:13 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-04 12:52:22 +0200 |
commit | 67f4f35cb2df1d21878978d414e108a0fc9e8d73 (patch) | |
tree | 4b0b9ca073557ac51c354e9f92fd3f7e8267feaa | |
parent | 327371ac58e8915f0f0dfb4d9942c6f9c0e0e43d (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>
-rw-r--r-- | src/meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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", ðertype_type, 2 * 8, BYTEORDER_BIG_ENDIAN), |