[PATCH nft] datatype: fix packet mark type name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Original was conflicting with "mark" keyword from scanner.l, preventing
creation of named sets with this type. Name "packetmark" corresponds
with the documentation, and the renaming can't create any regressions
as the "mark" name could not have been ever used in any setup.

Ref.: https://bugzilla.netfilter.org/show_bug.cgi?id=1012

---
 src/datatype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/datatype.c b/src/datatype.c
index c93f76a..d204ed1 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -686,7 +686,7 @@ static struct error_record *mark_type_parse(const
struct expr *sym,

 const struct datatype mark_type = {
     .type        = TYPE_MARK,
-    .name        = "mark",
+    .name        = "packetmark",
     .desc        = "packet mark",
     .size        = 4 * BITS_PER_BYTE,
     .byteorder    = BYTEORDER_HOST_ENDIAN,
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux