Skip to contentSkip to conversation

src: meta: Fix the size of cpu attribute.

PATCH New Ana Rey 1 participant 1 message Sep 2, 2014 netfilter

lore
Share & tools
lore

Ana Rey

author
#0 lore raw

PATCH 1/1 src: meta: Fix the size of cpu attribute.

Fix the size of cpu attribute in meta_template struct.

---
 src/meta.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/meta.c +1 -1
index 1f7217f..bf41ac4 100644
@@ -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),
 };
 
Signature · 1 line
1.7.10.4