summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>2013-06-26 13:37:21 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-27 19:54:02 +0200
commit443410dd335732dbcb2a6f1524d7481e506d67c1 (patch)
tree5b2b4b5d544c192698c1cd615236ab51a128afa8
parent31e34c36797b1edac7d6c8883161358f890c9581 (diff)
exthdr: xml: rename type node to exthdr_type
This patch renames the <type> node in the exthdr expr to <exthdr_type>. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/expr/exthdr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/expr/exthdr.c b/src/expr/exthdr.c
index c174bc2..a31f079 100644
--- a/src/expr/exthdr.c
+++ b/src/expr/exthdr.c
@@ -260,8 +260,9 @@ nft_rule_expr_exthdr_xml_parse(struct nft_rule_expr *e, char *xml)
exthdr->dreg = tmp;
e->flags |= (1 << NFT_EXPR_EXTHDR_DREG);
- /* Get and set <type> */
- node = mxmlFindElement(tree, tree, "type", NULL, NULL, MXML_DESCEND);
+ /* Get and set <exthdr_type> */
+ node = mxmlFindElement(tree, tree, "exthdr_type", NULL, NULL,
+ MXML_DESCEND);
if (node == NULL) {
mxmlDelete(tree);
return -1;
@@ -326,7 +327,8 @@ nft_rule_expr_exthdr_snprintf(char *buf, size_t len, uint32_t type,
switch(type) {
case NFT_RULE_O_XML:
return snprintf(buf, len, "<dreg>%u</dreg>"
- "<type>%s</type><offset>%u</offset>"
+ "<exthdr_type>%s</exthdr_type>"
+ "<offset>%u</offset>"
"<len>%u</len>",
exthdr->dreg,
exthdr_type2str(exthdr->type),