diff mbox

src: meta: Fix the size of cpu attribute.

Message ID 1409681605-8277-1-git-send-email-anarey@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Ana Rey Sept. 2, 2014, 6:13 p.m. UTC
Fix the size of cpu attribute in meta_template struct.

Signed-off-by: Ana Rey <anarey@gmail.com>
---
 src/meta.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/meta.c b/src/meta.c
index 1f7217f..bf41ac4 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -394,7 +394,7 @@  static const struct meta_template meta_templates[] = {
 						BITS_PER_BYTE,
 						BYTEORDER_HOST_ENDIAN),
 	[NFT_META_CPU]		= META_TEMPLATE("cpu",  &integer_type,
-						BITS_PER_BYTE,
+						4 * BITS_PER_BYTE,
 						BYTEORDER_HOST_ENDIAN),
 };