summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2014-12-03 00:02:51 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-12-03 12:46:46 +0100
commit77272b500f294ab726e265ec972a35d8a542fe69 (patch)
tree8c6243305e54d12b6c075f31db56e5a6fc40b3c8
parent178bf85812ba426aba887157e0dbc5ab26b61561 (diff)
datatype: fix name of icmp* code
The name of datatypes can be used in set definition so they should follow the same logic (and maybe not contain space to avoid problem with parsing). This patch adds an underscore to the name of the icmp* code datatype. Signed-off-by: Eric Leblond <eric@regit.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/datatype.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datatype.c b/src/datatype.c
index 1ace3fa7..fd3573ef 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -722,7 +722,7 @@ static struct error_record *icmp_code_type_parse(const struct expr *sym,
const struct datatype icmp_code_type = {
.type = TYPE_ICMP_CODE,
- .name = "icmp code",
+ .name = "icmp_code",
.desc = "icmp code",
.size = BITS_PER_BYTE,
.byteorder = BYTEORDER_BIG_ENDIAN,
@@ -754,7 +754,7 @@ static struct error_record *icmpv6_code_type_parse(const struct expr *sym,
const struct datatype icmpv6_code_type = {
.type = TYPE_ICMPV6_CODE,
- .name = "icmpv6 code",
+ .name = "icmpv6_code",
.desc = "icmpv6 code",
.size = BITS_PER_BYTE,
.byteorder = BYTEORDER_BIG_ENDIAN,
@@ -786,7 +786,7 @@ static struct error_record *icmpx_code_type_parse(const struct expr *sym,
const struct datatype icmpx_code_type = {
.type = TYPE_ICMPX_CODE,
- .name = "icmpx code",
+ .name = "icmpx_code",
.desc = "icmpx code",
.size = BITS_PER_BYTE,
.byteorder = BYTEORDER_BIG_ENDIAN,